ILASM Compiler Options
It's useful to understand various compiler options available for ILASM. Once you know them you can generate .exe or .dll files, depending on the application usage. The following table lists some of the important compiler options available for ILASM.
Option |
Meaning |
/exe |
Generates an executable file. This is the default option for the ILASM. |
/dll |
Generates a library file with the extension .dll. |
/LISTING |
Types a formatted list file. |
/QUIET |
Don't report assembly progress. |
/DEBUG |
Measure and report compilation times. |
/RESOURCE=<res_file> |
Link the specified resource file (*.res) into the resulting .exe or .dll. |
/OUTPUT=<targetfile> |
Compiles the file with the specified name (the user must provide the extension, if any). |
/KEY=<keyfile> |
Compile with strong signature (<keyfile> contains the private key). |
/KEY=@<keysource> |
Compile with strong signature (<keysource> is the private key source name). |
Generating an Executable
To generate an executable file from myFile.il, issue the following command at the command prompt:
ilasm myFile.il
Generating a DLL
To generate a library file from myFile.il, issue the following command at the command prompt:
ilasm myFile.il /dll