How to have gcc generate assembler code with C source listed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: gcc-help@xxxxxxxxxxx
- Subject: How to have gcc generate assembler code with C source listed?
- From: "Chen (陈) Jun (军)" <chjfth@xxxxxxxxx>
- Date: Fri, 04 Jul 2008 17:24:32 +0800
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
Hello, all,
We know that -S option makes gcc output assembly code in a .s file so we
can examine. I'd like to know can I have gcc generate .s file with
original C/C++ source code listed side by side(but in comment blocks)
with assembly code. The benefit for this is the reader can easily know
which C/C++ statement corresponds to which assembly(assembler) code.
Is there any options to enable this? If yes, since what version of gcc
is it supported?
Thank you in advance.
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]