optimization options not working

Ian Lance Taylor iant@google.com
Mon Mar 1 21:21:00 GMT 2010


rohitgeek <rohit23taneja@gmail.com> writes:

> This is test.c
>
>  main()
>   {
>   int a,b,c;
>    a= 5;
>    b=10;
>    d=30;
>   c=  a*b + 30 ;
> }

What everyone is trying to tell you is that that program is precisely
equivalent to this one:

main() { }

The optimizer is smart enough to reduce the former to the latter.

Ian



More information about the Gcc-help mailing list