GNU GCC

Docs

  1. Manual: Using the GNU Compiler Collection (GCC)

Notable Options

Option-Summary

-c Do not link
-D Create a preprocessor definition, like a #define directive in the source code
-g Produce debugging information for GDB (-g0 negates -g)
-I Specify directories to search for header files, libraries etc
-llibrary Search the library named library when linking
-Ldir Add directory dir to the list of directories to be searched for -l
-M Preprocessor: Output a rule suitable for make describing the dependencies..?
-o Specify output file. Applies to object files and executables
-pg Generate extra code to write profile information suitable for the analysis program gprof
-Wall enable most warnings