This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc: generated assembly code with C source
- From: Sergei Organov <osv at javad dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Jul 2007 20:00:41 +0400
- Subject: Re: gcc: generated assembly code with C source
- References: <46A77055.E1A43CAB@fr.thalesgroup.com>
SIRUGUET Benoit <benoit.siruguet@fr.thalesgroup.com> writes:
> 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
Try
gcc -Wa,-adlh -g -c hello.c
-- Sergei.