Re: gcc optimization option flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



M R Swami Reddy wrote:
> Hello Andrew,
> I used the -O1 and options listed with --verbose-asm separately, but the
> generated .s file differs. Did I miss some more options apart from the
> --verbose-asm listed?
> 
> For ex:
>  > gcc -O1 test.c -S -o test-o1.s
> 
>  > gcc test.c "option listed in .s file with -version" -S  -o
> test-listopts.s
> 
> test-o1.s and test-listopts.s are differs.

They do, and that's right.  Unless you select -O you don't get any
optimizations, no matter what other flags you set.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux