Compiler Option Switches

Top  Previous  Next

Apart from the options that the 3L c command uses automatically, the compiler has several others. These are described in the compiler's documentation. If you need to use the options, you can specify them in the command after the source file name, like this:

 

» 3L C driver.c -dDEBUG -k

 

This example compiles the program driver.c, with the macro DEBUG defined, generating the file driver.obj. The output assembler file is retained at the end of the compilation, instead of being deleted after the assembler has finished.

 

Dragons003There are compiler options that can invoke the linker once the compilation has been completed, but these must not be used when Diamond applications are being built. See: Linking.

 

You can give extra compiler options in the IDE by right-clicking the file and selecting Options.

 

FileOptions

 

This brings up a window that accepts the options.

 

CompilerOptions