programmation_gcc
Ceci est une ancienne révision du document !
GCC
Simple
Compiler
compiler uniquement
$ gcc -c test.c
Ce qui genere un fichier objet: test.o
compiler et linker
$ gcc -o test test.c
Ce qui genere un executable test
compiler avec tous les "warnings"
$ gcc -Wall -c test.c
compiler avec les informations de "debug"
$ gcc -g -c test.c
compiler en montrant l'assembleur
Lien: http://www.delorie.com/djgpp/v2faq/faq8_20.html
$ gcc -S -c test.c
Un fichier test.s
est créé et contient le code assembleur.
compiler en montrant l'assembleur et le C
$ gcc -c -g -Wa,-a,-ad test.c > test.lst
Voir le fichier test.lst
.
programmation_gcc.1212758662.txt.gz · Dernière modification : 2008/06/06 13:24 de thierry