-O
optimization level 0=no optimization
-g
add debug symbols
-pthread
link against pthread library (required for g++)
-I
specify include directories
-o
output file name (as opposed to a.out)
-x
language (c, c++ etc..) not heavily used
-c
produce .o file from .c/.cpp file
used with makefile targets