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]

mark.urs@gmail.com


Hi,

I'm just curious to know whether there is any option in GNU GCC to get
the C code  and the corresponding asembly.

like if we give '-S' option for GCC it gives the assembly of the program
#gcc  -S test.c
gives test.S

I want to know the option for getting something like
--------------------------
printf()
<ASSEMBLY of printf>
fn();
<ASSEMBLY FOR JUMPING TO FN>
--------------------------
for a program
----------------
printf()
fn();
----------------

Thanks and regards,
Mark


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