Re: regarding optimization options in phase ordering

2009-08-10 Thread pms
Thanx Ian, My question is as follwos We've a problem here. we were trying to use cc1 with & without -O option to verify the optimizations happening in our sample code. the sample code is given below file name : 1.c #include int main() { int a=5; int b; b=a; printf("the number is :%d",b);

Re: regarding optimization options in phase ordering

2009-08-07 Thread pms
(%esp) movl$.LC0, (%esp) callprintf pls reply Richard Guenther-2 wrote: > > On Fri, Aug 7, 2009 at 1:50 PM, pms wrote: >> >> Hi, >>     We've a problem here. we were trying to use cc1 with & without -O >> option to verify the optimiz

regarding optimization options in phase ordering

2009-08-07 Thread pms
Hi, We've a problem here. we were trying to use cc1 with & without -O option to verify the optimizations happening in our sample code. these r the list of outputs after each compilation without -O p...@shiva:~/Desktop/Compilers/GCC/build/test$ ls 1.c1.c.011t.ehopt1.c.0

Re: Gimple Pass

2009-07-25 Thread pms
if(TREE_CODE(TREE_TYPE(stmt))==INTEGER_TYPE){ intvar++; } } break; Nathan Froyd-2 wrote: > > On Fri, Jul 24, 2009 at 05:20:16AM -0700, pms

Gimple Pass

2009-07-24 Thread pms
Hi, I've written a gimple pass, which counts for the number of assignment statements in the c code. I've used the lval of the GIMPLE_MODIFY_STMT and checking for VAR_DECL condition. It is working But I want to know what are the TREE_CODEs for other remaing constructs viz declration stmt, co