What the correct code on Darwin is depends. If newstackptr is simply a
global variable in another object file and you're compiling without
PIC, then you can use code like this:
(note that r1 must always be valid and thus mist always changed using a
single instruction under any PPC ABI I know of; your original linux
code is wrong in that respect)
If it's a variable imported from another shared library or if you're
compiling PIC code, then you need something like this:
In general, check the output of "gcc -S somefile.c" to see how things
are done under Darwin/Mac OS X.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden