This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc: generated assembly code with C source
- From: SIRUGUET Benoit <benoit dot siruguet at fr dot thalesgroup dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Jul 2007 17:46:29 +0200
- Subject: gcc: generated assembly code with C source
Hello Folks,
My question is: How to output the source as comment in the generated assembly language code ?
Pretty much like the DiabData compiler, which has the option -Xpass-source to do that:
$ dcc -S -Xpass-source hello.c
I didn't see any similar option in the gcc user manual. Any solution to merge both languages adequately will suit me. Thanks in advance for any help.
Regards
Benoît Siruguet, Thales Avionics