gcc -O2 -Wall -fPIC -ansi -pedantic-errors -fomit-frame-pointer -D_GNU_SOURCE

 -fpic generate faster and smaller code, but has platform-dependent limitations and may not work
This will be used to compile .c files.