This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
mark.urs@gmail.com
- From: "Mark U" <mark dot urs at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 25 May 2006 19:23:01 +0530
- Subject: 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