简体   繁体   English

C#编译为MSIL代码

[英]C# compiling to MSIL code

Does the Microsoft C# compiler (CSC.exe) have an option to output the Intermediate Language files? Microsoft C#编译器(CSC.exe)是否有输出中间语言文件的选项? Kind of like the -S switch does in GCC? 有点像GCC中的-S开关吗?

您可以使用ildasm.exe从csc.exe编译的程序集中提取IL。

Your final executables and DLLs are stored in IL. 您的最终可执行文件和DLL存储在IL中。

To see what I mean, download .NET Reflector , open one of your DLLs or executables, and switch the language to IL. 要查看我的意思,请下载.NET Reflector ,打开一个DLL或可执行文件,然后将语言切换为IL。 It will also go through translating the IL into C# for you. 它还将为您翻译IL到C#。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM