= GNU GCC == Docs # [[http://gcc.gnu.org/onlinedocs/gcc/|Manual]]: Using the GNU Compiler Collection (GCC) # [[http://www.thegeekstuff.com/2011/10/c-program-to-an-executable/|Journey of a C Program to Linux Executable in 4 Stages]] == Notable Options [[https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html|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 | | -l//library// | Search the library named //library// when linking | | -L//dir// | 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 |