Re: Where to look for dynamic code loading
Re: Where to look for dynamic code loading
- Subject: Re: Where to look for dynamic code loading
- From: Eric Albert <email@hidden>
- Date: Thu, 2 Mar 2006 09:36:59 -0800
On Mar 2, 2006, at 6:51 AM, Jeff DuMonthier wrote:
On Mar 1, 2006, at 11:53 PM, Eric Albert wrote:
The problem with a single binary is that if you build with the
-faltivec flag the code will crash on G3 machines even if you don't
call any Altivec functions.
I'm pretty sure that's not supposed to be the case, but I might be
thinking of -maltivec rather than -faltivec. I'm sure there's a way
to make this work, since the OS does this all over the place.
What is -maltivec? When I check the 'Enable Altivec Extensions'
option under C/C++ compiler options, it adds the -faltivec flag.
-maltivec is a gcc 4 flag, so I guess you don't need to worry about it.
As I understood it, that causes the Altivec unit state to be saved on
the stack on function calls whether you use the Altivec unit in the
function or not, and those instructions are illegal on a G3.
That's not true. Did you try it? That's not the way function calls
work -- you're probably thinking of context switches rather than
function calls -- and context switches need to preserve the same state
regardless of what your application is built with, since your app is
using system frameworks and those may be using AltiVec.
-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