zoukankan      html  css  js  c++  java
  • Compiling to MSIL

    Compiling to MSIL
    .NET Framework Developer's Guide
    Compiling to MSIL

    When compiling to managed code, the compiler translates your source code into Microsoft intermediate language (MSIL), which is a CPU-independent set of instructions that can be efficiently converted to native code. MSIL includes instructions for loading, storing, initializing, and calling methods on objects, as well as instructions for arithmetic and logical operations, control flow, direct memory access, exception handling, and other operations. Before code can be run, MSIL must be converted to CPU-specific code, usually by a just-in-time (JIT) compiler. Because the common language runtime supplies one or more JIT compilers for each computer architecture it supports, the same set of MSIL can be JIT-compiled and run on any supported architecture.

    When a compiler produces MSIL, it also produces metadata. Metadata describes the types in your code, including the definition of each type, the signatures of each type's members, the members that your code references, and other data that the runtime uses at execution time. The MSIL and metadata are contained in a portable executable (PE) file that is based on and extends the published Microsoft PE and common object file format (COFF) used historically for executable content. This file format, which accommodates MSIL or native code as well as metadata, enables the operating system to recognize common language runtime images. The presence of metadata in the file along with the MSIL enables your code to describe itself, which means that there is no need for type libraries or Interface Definition Language (IDL). The runtime locates and extracts the metadata from the file as needed during execution.

    For detailed descriptions of MSIL instructions, see the Tool Developers Guide directory of the .NET Framework SDK.

  • 相关阅读:
    vs2008sp1 发布程序
    sql server 存储过程的优化.(变量表,临时表的简单分析) (转)
    常用企业邮件
    C# 服务 调试、正式使用两便的模板 (转)
    c# 创建服务步骤
    CButton 实现重绘时需要注意(转)
    在Visual Studio 2005中调试SQL Server 2005的存储过程 (转)
    Rainbow Table破解算法(转)
    玩转ultraISO
    C#中StreamReader读取中文文本出现乱码的解决方法(转)
  • 原文地址:https://www.cnblogs.com/MayGarden/p/1632939.html
Copyright © 2011-2022 走看看