• 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: MacIntel apps behaves weirdly when compiled with -02 not -01
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacIntel apps behaves weirdly when compiled with -02 not -01


  • Subject: Re: MacIntel apps behaves weirdly when compiled with -02 not -01
  • From: Eric Albert <email@hidden>
  • Date: Thu, 12 Jan 2006 15:19:17 -0800

On Jan 12, 2006, at 9:40 AM, Olivier Tristan wrote:

I'm having some trouble porting my application to macintel.
When building my application with an optimization settings greater to -01, my application begin to behave weirdly.
It works perfectly fine when I use the -01 optimization setting.


Of course, this application works fine on a standard mac and on wintel using -03 (The problem do not seems related to endianess).

Currently the problem are that the UI is not displayed and I got weird sound (my app is a synth).

Does anyone already had the same problem ?
Any Ideas ?

I'm not aware of any code generation issues with the shipping version of the compiler on the new Intel-based Macs, so it's unlikely you're seeing that. There are a few compiler fixes in Xcode 2.2.1 -- the version that ships with those systems and which'll be posted shortly -- so there's a slight chance you may be hitting the things in Xcode 2.2 that those fixed, but that's also unlikely.


What we've seen much more often with things like this is that there may be an uninitialized variable in your code or non-zeroed memory or something like that and it just doesn't show up on PowerPC or with other compilers. You'll just have to debug it. Once you have a simplified test case or at least a better understanding of what's not working, you'll either be able to track down the problem or have enough information to file a bug report.

-Eric

_______________________________________________
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


  • Follow-Ups:
    • Re: MacIntel apps behaves weirdly when compiled with -02 not -01 - Almost solved(auto-vectorization issue)
      • From: Olivier Tristan <email@hidden>
    • Re: MacIntel apps behaves weirdly when compiled with -02 not -01
      • From: Olivier Tristan <email@hidden>
References: 
 >MacIntel apps behaves weirdly when compiled with -02 not -01 (From: Olivier Tristan <email@hidden>)

  • Prev by Date: Re: project templates
  • Next by Date: Re: deprecated FOUR_CHAR_CODE and macintel
  • Previous by thread: MacIntel apps behaves weirdly when compiled with -02 not -01
  • Next by thread: Re: MacIntel apps behaves weirdly when compiled with -02 not -01
  • Index(es):
    • Date
    • Thread