Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
What optimizations does -O really do?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
What optimizations does -O really do?
Subject
:
What optimizations does -O really do?
From: James Walker <
email@hidden
>
Date: Fri, 25 May 2007 11:53:10 -0700
I have an application that uses C++ and OpenGL, and I noticed that the 3D view flickers when the code is compiled with optimization, and does not flicker when the code is compiled with no optimization. (Xcode 2.4.1, 10.4u SDK, on a G5.) I thought it might give me a clue if I figured out exactly which optimization triggered the problem. So I looked in "man gcc", which told me that -O implies
-fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants
and maybe -fomit-frame-pointer. If I put all those in "Other C++ flags", there is no flicker, but if I put -O there, it flickers. It appears that -O must be doing something else, but what?
--
James W. Walker, Innoventive Software LLC
<
http://www.frameforge3d.com/
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Follow-Ups
:
Re: What optimizations does -O really do?
From:
Lawrence Gold <email@hidden>
Prev by Date:
Re: dynamic cast problem
Next by Date:
Re: dynamic cast problem
Previous by thread:
Re: dynamic cast problem
Next by thread:
Re: What optimizations does -O really do?
Index(es):
Date
Thread