This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re : Intermediate code dump needed.
- From: EMPEROR <kalyan_ch at students dot iiit dot net>
- To: saurabh verma <saurabh dot verma at codito dot com>
- Cc: gcc-help mailing list <gcc-help at gcc dot gnu dot org>
- Date: Sat, 8 May 2004 20:29:58 +0530 (IST)
- Subject: Re: Re : Intermediate code dump needed.
hi,
Thanks for ur response
But I think it didn't work, because I tried it on a sample program tri1.c
whose code is as below
tri1.c
***********************************
#include<stdio.h>
main()
{
int a=3;
int b=5;
int c=a+b;
printf ("%d",c);
}
***********************************
and then compiled it as
################################
gcc -d tri1.c
################################
and the output was tri1.s whose code is
*************************************
.file "ccgkBfYE.s"
.ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
*************************************
but this is not the RTL code corresponding to tri1.c.
Have I gone wrong anywhere ? plz help me out
On 6 May 2004, saurabh verma wrote:
> hi,
> try the -d options of gcc for getting the rtl dumps at different stages
> of optimization during compilation.
>
> regards
> saurabh
>
--