[Ilugc] -O4 optimization with gcc 4.7
- From: mohan43u@xxxxxxxxx (Mohan R)
- Date: Mon, 30 Sep 2013 14:31:18 +0530
On Mon, 2013-09-30 at 14:11 +0530, km wrote:
I have seen this -O4 optimization being used in latest c/c++ soursecode but
find no documentation on the use of O4 over O3 level.
Which c/c++ sourcecode you see O4 optimization? AFAIK, there is,
-O0 - For debugging
-O1 - optimize
-O2 - optimize more
-O3 - optimize most
-Os - optimize for size
-Ofast - non-standard optimization
See man gcc(1). Anything above -O3 is just -O3[1].
1.
http://stackoverflow.com/questions/1778538/how-many-gcc-optimization-levels-are-there
Thanks,
Mohan R
Other related posts: