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);
(%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
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
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
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