2 examples for gcc
# gcc is used to compile C source code, for C++ (and even C) use g++ # use -o to specify your own output filename gcc ".c file here" -o "outfile name here" # g++ uses virtually the same syntax # to specifiy optimization levels, use -O gcc -Os ".c file here" -o "outfile name here"
# preprocess a file, but without #line statements # the same also works with g++ and clang/clang++ # by default, this will write the result to standard output, '-o' writes the # preprocessed output to 'output.c' gcc -E -P yourfile.c -o output.c