• 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: GCC 4.0 compiled code behaves differently with Debug on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 4.0 compiled code behaves differently with Debug on


  • Subject: Re: GCC 4.0 compiled code behaves differently with Debug on
  • From: Paul Russell <email@hidden>
  • Date: Wed, 21 Dec 2005 19:14:53 +0000

On 21 Dec 2005, at 17:25, Ken Baer wrote:

Well, after I posted the original message to this thread, I realized that the optimization is different between Debug and Release compiler settings. So, I started playing with the optimization for my release build. I discovered that if reduce the optimization from Fastest to Fast, the code works properly. Now this code is identical to code that works with Fastest/Smallest using the gcc 3.3 compiler. I will look into using Guard Malloc, but I am still suspicious of the compiler.


I've noticed some small differences in floating point behaviour between 3.3 and 4.0. The generated code is still correct but I saw a problem where a novice programmer was making bad assumptions when converting floats to ints (he got away with it in 3.3 but his code broke in 4.0).


Paul

_______________________________________________
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: 
 >GCC 4.0 compiled code behaves differently with Debug on (From: Ken Baer <email@hidden>)
 >Re: GCC 4.0 compiled code behaves differently with Debug on (From: Eric Albert <email@hidden>)
 >Re: GCC 4.0 compiled code behaves differently with Debug on (From: Ken Baer <email@hidden>)

  • Prev by Date: Re: Where is __MyCompanyName__ defined?
  • Next by Date: Re: C++ Anyone
  • Previous by thread: Re: GCC 4.0 compiled code behaves differently with Debug on
  • Next by thread: Re: GCC 4.0 compiled code behaves differently with Debug on
  • Index(es):
    • Date
    • Thread