• 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
Re: Optimization level
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimization level


  • Subject: Re: Optimization level
  • From: Scott Tooker <email@hidden>
  • Date: Thu, 5 Jan 2006 10:33:28 -0800


On Jan 5, 2006, at 10:03 AM, Kevin Meaney wrote:

G'day again all,

The default optimization level for the debug build configuration is:

Fastest, Smallest [-Os]

Hmm, the "Optimization Level" build setting should default to -Os (regardless of build configuration), but in all our templates we set it to -O0 (None) for the Debug build configuration. In the future it would be nice to have the build setting default be a bit smarter based on the build configuration they are part of.



What are the implications of this for debugging. Is it possible that one
of the xcode developers realized that using this optimization does not
interfere with debugging (Breakpoints, getting expected values for
variables at breakpoints, changing the value of a variable while
debugging)? or is this unintended and should be set to none for debug builds.

-Os is definitely going to optimize your code and debugging optimized code is no fun :( You want -O0.


Scott


Kevin


_______________________________________________ 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

_______________________________________________ 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
References: 
 >Optimization level (From: "Kevin Meaney" <email@hidden>)

  • Prev by Date: Re: 'MSDN' equivalent of Xcode?
  • Next by Date: Re: 'MSDN' equivalent of Xcode?
  • Previous by thread: Optimization level
  • Next by thread: global constructors keyed to _blah_
  • Index(es):
    • Date
    • Thread