Re: Interesting problem with Xcode 3.0
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