1.Depending on the platform switch, the C# compiler will emit an
assembly that contains either
a PE32 or PE32+ header (运行32位/64位), and the compiler will
also emit the desired CPU architecture (or
8 Part I CLR Basics
agnostic) into the header as well.
Microsoft ships two SDK command-line utilities, DumpBin.
exe and CorFlags.exe(设置Assembly以32 bit还是64 bit运行), that
you can use to examine the header information emitted in a
managed module by the compiler.一般情况下,Windows会根据Header信息
来决定以什么样的方式来运行Assembly.
2.JITCompiler is responsible for compiling a method’s IL code
into native CPU instructions.基于Stack方式来
Execution.Verification 机制确保Code是Safe。
The NGen.exe tool that ships with the .NET Framework can be used
to compile IL code to
native code when an application is installed on a user’s machine.
assembly that contains either
a PE32 or PE32+ header (运行32位/64位), and the compiler will
also emit the desired CPU architecture (or
8 Part I CLR Basics
agnostic) into the header as well.
Microsoft ships two SDK command-line utilities, DumpBin.
exe and CorFlags.exe(设置Assembly以32 bit还是64 bit运行), that
you can use to examine the header information emitted in a
managed module by the compiler.一般情况下,Windows会根据Header信息
来决定以什么样的方式来运行Assembly.
2.JITCompiler is responsible for compiling a method’s IL code
into native CPU instructions.基于Stack方式来
Execution.Verification 机制确保Code是Safe。
The NGen.exe tool that ships with the .NET Framework can be used
to compile IL code to
native code when an application is installed on a user’s machine.