Common Intermediate Language: Difference between revisions

Content deleted Content added
Sample Code: "cil" and "managed" are defaults, and "public" is not required for the entrypoint; ".assembly extern" is needed for WriteLine
Line 102:
== Compiling CIL ==
 
CIL can be very easily compiled by anyone who has the .NET framework installed on their computer, as it is distributed with a tool called the ILAsmILDAsm (IL Assembler). The ILAsmILDAsm executable can be found in the WINDOWS folder, on the root drive. The specific ___location of it may vary with the version of the Framework you have, but will be in at least one of the version folders in C:\WINDOWS\Microsoft.NET\Framework.
 
To compile a program with the ILAsm on a computer running Windows, simply execute this command in the Command Prompt:
 
ilasmildasm filename.il /exe
 
This will, literally, compile the filename referenced into a .exe file. You can change it to become a DLL, for example, by changing the last attribute to dll instead of exe.