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]

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
> 

-- 



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