Re: C statements in assembler listing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/3/07 10:34 AM, gunnar.piel@xxxxxxx wrote:

> or another way to get a mixed display of C-code and generated assembler 
> code with GCC.

You need to pass the options -ahl to the assembler ('l' for listing and
'h' for high-level source).  And you also need to compile with -g to
produce debugging output:

$ gcc -Wa,-ahl -g file.c

Should do the trick.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux