This is the mail archive of the gcc@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: Mixed-mode assembler


Nick Gianakas <gianakas@optonline.net> writes:

> Does GCC have an option to generate mixed-mode assembler output, similar
> to to GDB's mixed-mode output?  I see the -S option stops before the
> assembler stage.  Is there another option for GCC to generate this file
> w/ the source line above the asm code (commented out, of course)?

You can kind of do it using gas, by using
    gcc -c -g -Wa,-ahl FILE.c
That will print the assembly+source listing on stdout.

Ian


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