On Aug 11, 2005, at 12:16 PM, Nathaniel Gray wrote:
On Aug 11, 2005, at 5:49 AM, Patrick Beard wrote:
As Greg said, go read objc-msg-ppc.s to understand why. The
relevant comment describes the true layout of margs, which has an
array of 13 doubles at the beginning, which are animage of the
floating point parameter registers that must be set. In this case,
the float parameter x is supposed to be in fp0.
Right. As I said, I've seen the marg_list layout in objc-msg-ppc.s
and I do understand how it works. Like Sherm, I'm just a little
puzzled why the marg_* macros aren't designed to take care of
this. It's just confusing when a documented solution doesn't work
on something as pervasive as floats and there's no mention of it in
the docs. I guess it's not Apple's problem when I want do weird
things like try to write Cocoa programs in OCaml. ;^) Still, just
a *little* more information on how to do this properly would go a
long way in helping people who want to access objective-c
efficiently from other languages (including C, I might add).
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden