Does the Microsoft C# compiler (CSC.exe) have an option to output the Intermediate Language files? Kind of like the -S switch does in GCC?
C# compiling to MSIL code
2k Views Asked by Icemanind At
2
There are 2 best solutions below
4
Will Eddins
On
Your final executables and DLLs are stored in IL.
To see what I mean, download .NET Reflector, open one of your DLLs or executables, and switch the language to IL. It will also go through translating the IL into C# for you.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in CIL
- Boxing System.RuntimeArgumentHandle
- Where and how are IL opcodes implemented in the .NET runtime source code
- .NET reflection emit - what am I doing wrong in writing this method in MSIL?
- View Intermediate Language code in Visual Studio
- How to parse a method invocation in IL bytes?
- How are memory allocations handled in "bytecode based" languages?
- Using Harmony to patch the real content of an async method for a Unity game
- Undefined behavior when trying to Memory.Slice using il.Emit
- How to emit IL for ref locals using ILGenerator?
- CIL code parses "15" into 15,000000000000004
- CIL shows `box` ops when the generic type is constrained to a class
- Is the C# compiler able to optimize a statement like someEnumerable.Count() < 2?
- Why is there a `.constrained` opcode preceeding the `call` opcode when calling an abstract static function?
- C# find what the last interacted with instance in the call stack is
- Insert method call into setter causes Invalid IL code
Related Questions in CSC
- How can I generate a Business Model Canvas with Bootstrap Cards and integrate it as html in a qmd-file?
- .Net 4.5.1 <probing privatePath="bin" /> not found
- Can I tell the csc /recurse command to skip a folder?
- Compiling a single CS file using the latest framework version
- C# compiler - getting verbose output or diagnostic info
- MSBuild to compile assemblies for Net6.0
- procedural programming in C# leads to CS0116 error
- CSC : warning RSG002: TargetPath not specified for additional file
- Sorting rows of a sparse CSC matrix Golang
- C# Build with csc, Execute from Commandline - Getting Exceptions
- The term 'csc' is not recognized as the name of a cmdlet, etc. (New to C#. Learning from 'C#8.0 and .NET Core 3.0)
- Building/Running .Net Application with msbuild
- Program does not contain a suitable 'Main' method for entry point
- .editorconfig ignored after migrating from old csproj to new Project SDK
- Why doesn't my csc.exe compiled code accept a documented String.Split overload?
Related Questions in INTERMEDIATE-LANGUAGE
- Three-Address-Code (TAC) and Conjunction/Disjunction
- Uplifting asm to IL in a generic way
- c# Emit dynamic method to convert DateOnly To Datetime
- C# understanding intermediate language
- Will assembly which targets .netstandard2.0 but runs on .NET 7 get all the performance boost from the latest runtime?
- Unrecoverable IL error, but the IL looks fine
- How to compile a .NET Core C# project to raw IL code?
- Do basic block parameters mean code locality?
- Why is callvirt used to call a method on a readonly field of generic type
- Using a locally defined class instead of the one provided by a library/package C# IL Weaving
- Creating Dymamic Method throws en exception
- Is managed code generated after compilation?
- Why does CMake set -no-fat-lto-objects when I enable LTO/IPO?
- Get ToString-expression from compiled class using reflection?
- Why casting double to double emits conv.r8 IL instruction
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use ildasm.exe to extract the IL from the assembly compiled by csc.exe.