next
index
prev
Important gcc flags:
-ansi
: This flag tells the compiler to enforce ANSI C standards
-pedantic : More pedantic ansi, warnings for stff you probably didn't mean.
-Wall :
Show all reasonable warnings (there are more).
-g
: Produce debug information, necessary for debugging.
-llibrary : Load
library, finds a library. Use "-lm" to load a standard math library.
-c
: Compile or assemble the source files, but
do not link. The compiler output is object files
corresponding to each
source file.
-S
: Compile only, output assembly code.
-E
: Pre-process only output pre-processed code.
-Dmacro : Define a macro,
one can also use -Dmacro=val in order to assign a value for the macro,
This will be used
for preprocessing all files.
when compiling I recommend (and Kimchi demands) compiling:
gcc -ansi -pedantic -Wall file1 [file2 [file3...]] -o output
next
index
prev