next up previous

2.0.5 Unix Compiler Options

-o newfile
Name the executable file newfile (rather than a.out if this option is NOT used).
-c
Compile only (suppressing linking), and produce a .o file for each source file being compiled.
-O, -O1, -O2, etc.
Optimize code at different levels - Note: At most levels of optimization, debugging is not allowed.
-g
compile and produce information useful to a debugger, (such as dbx, dbxtool, or xdbx), or a performance profiling package.
Note:
In some environments, the -g flag or the -O flag may be automatically implied.

For more information on compiling options type, man compiler_name, where commonly available compilers are cc, gcc or xlc for C programs and f77 or xlf for Fortran programs.