• 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: Interesting problem with Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting problem with Xcode 3.0


  • Subject: Re: Interesting problem with Xcode 3.0
  • From: Richard Bannister <email@hidden>
  • Date: Fri, 15 Feb 2008 20:05:06 +0000


On 15 Feb 2008, at 14:02, Jean-Daniel Dupas wrote:

Why do you need to use -static ?

Because -fomit-frame-pointer doesn't seem to do what I thought it would. I'm using some pretty tight inline assembly code inside of a C function which needs to be aligned as I've written it. Unfortunately the function prologue Xcode adds misaligns the code, resulting in a crash. If I compile it using command line gcc -static -fomit-frame- pointer and link the .o into my project it works fine.


Before anyone objects, I know that what I've done is ugly as heck, but it's called approximately 15 million times per loop iteration in my program, hence it needs to be as fast as possible. The assembly version results in an overall performance improvement of about 30% in my program.

Richard


_______________________________________________ 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: 
 >Interesting problem with Xcode 3.0 (From: Richard Bannister <email@hidden>)
 >Re: Interesting problem with Xcode 3.0 (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Losing locals in debugger
  • Next by Date: Re: Losing locals in debugger
  • Previous by thread: Re: Interesting problem with Xcode 3.0
  • Next by thread: Re: Interesting problem with Xcode 3.0
  • Index(es):
    • Date
    • Thread