• 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: Dario Accornero <email@hidden>
  • Date: Wed, 12 Nov 2003 16:15:06 +0100

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.


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".

Perhaps I was too severe, but I feel it is a not very useful combination for a Development build.


YMMV,
Dario
_______________________________________________
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: Alastair Houghton <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>)

  • Prev by Date: File detection.
  • 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