• 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: Yet another build styles issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another build styles issue


  • Subject: Re: Yet another build styles issue
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 12 Nov 2003 14:44:51 +0000

On 12 Nov 2003, at 14:04, Dario Accornero wrote:

> On 12 Nov 2003, at 14:32, I wrote:
>
>> I've created an empty project in Xcode, and manually added a BSD
>> Static Library target.  I have not touched the target settings at
>> all.  In the Development build style for the project, I have changed
>> a few options: no RTTI support, a few preprocessor macros, and no
>> optimizations (BTW, why on earth a Development build style would have
>> -Os as the default?!?).
>
> This is unbelievable -- in this situation, gcc 3.3 is actually being
> fed the "-g -Os" combination... I mean, seriously, how many people do
> use these two settings together?  Stepping with gdb through code
> compiled with -O3 or -Os (and IMNSHO even -O1) is next to useless.

No it isn't.  It's very useful.  One particular benefit is that by
testing with optimised code, you will expose bugs in your code that
will only show-up when the optimiser is enabled.  Also, when building
with the optimiser enabled, you get a few extra warnings that don't
show up when the optimiser is turned-off (basically because GCC doesn't
do the necessary analysis unless it's optimising)... some of these
warnings are quite useful.

I do agree with the general point that it's easier to debug things with
optimisation turned off completely, but debugging with it enabled
certainly isn't "next to useless".

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Yet another build styles issue
      • From: Dario Accornero <email@hidden>
References: 
 >Yet another build styles issue (From: Dario Accornero <email@hidden>)
 >Re: Yet another build styles issue (From: Dario Accornero <email@hidden>)

  • Prev by Date: Re: Adding a sourcecode filetype
  • Next by Date: Re: Adding a sourcecode filetype
  • Previous by thread: Re: Yet another build styles issue
  • Next by thread: Re: Yet another build styles issue
  • Index(es):
    • Date
    • Thread