development:build:compile
Compile
Commands
- query recommended compile flags for an application (from
/usr/lib/pkgconfig/*.pc)pkg-config --cflags "gdk-2.0"
- generate a pure assembly file with GCC
gcc -S -c -o test.s test.c
- generate an assembly file with C source code mixed
gcc -c -Wa,-a,-ad test.c > test.lst
-Wainstructs the GCC to pass the following options toAS-ais a short form of-ahlswhich instructs the assembler to include assembly (-al), include high-level source (-ah) and to include symbols (-as)-adomits any debugging directives from listing
- show all pre-defined GCC preprocessor macros
cpp -dM /dev/null
- show defined preprocessor macros (cf. GCC Online Documentation)
gcc -E -dM <file>
development/build/compile.txt · Last modified: by Ralf Hoppe
