Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending floats using objc_msgSendv




On Aug 11, 2005, at 9:50 AM, Sherm Pendley wrote:

On Aug 11, 2005, at 8:49 AM, Patrick Beard wrote:


As Greg said, go read objc-msg-ppc.s to understand why.


One thing I don't understand is why the marg_* macros don't automatically do the right thing with float arguments. Isn't the point of having those macros to insulate the programmer from having to deal with that sort of detail?

The simple answer is that these macros are a little too simplistic to easiy encapsulate the calling conventions of the PowerPC. I've written code that builds parameter register maps in the past, and you need to keep track of the types of the parameters that have been pushed so far.


- Patrick

_______________________________________________
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

This email sent to email@hidden
References: 
 >Sending floats using objc_msgSendv (From: Nathaniel Gray <email@hidden>)
 >Re: Sending floats using objc_msgSendv (From: Greg Parker <email@hidden>)
 >Re: Sending floats using objc_msgSendv (From: Sherm Pendley <email@hidden>)
 >Re: Sending floats using objc_msgSendv (From: Nathaniel Gray <email@hidden>)
 >Re: Sending floats using objc_msgSendv (From: Sherm Pendley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.