This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc: generated assembly code with C source


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]