• 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 15:22:21 +0000

On 12 Nov 2003, at 15:15, Dario Accornero wrote:

> On 12 Nov 2003, at 15:44, Alastair Houghton wrote:
>
>>> 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.
>
> If you can stand debugging in gdb with optimisations on, more power to
> you -- sometimes I find it uncomfortable even at -O1.  As for the
> warnings, you will get them anyways in your Deployment build.

No you don't.  You don't get "uninitialized variable" warnings unless
you are optimising (they need data flow analysis); you also don't get
the warning about automatic variables in functions where you've used
setjmp().

GCC's manual mentions this, here:


http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/
Warning-Options.html

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>)
 >Re: Yet another build styles issue (From: Alastair Houghton <email@hidden>)
 >Re: Yet another build styles issue (From: Dario Accornero <email@hidden>)

  • Prev by Date: Re: Xcode and info.plist?
  • Next by Date: Re: File detection.
  • Previous by thread: Re: Yet another build styles issue
  • Next by thread: Re: Yet another build styles issue
  • Index(es):
    • Date
    • Thread