ASM help needed... (on x86/windows/gcc)
Lloyd Dupont
lloyd@nova-mind.com
Fri May 20 02:09:00 GMT 2005
Simple, I'm building an ObjectiveC binding from .NET.
Basically my .NET code generator transform all objectiveC method in a call
to
objc_msg_send() (from the .NET code, which could call C directly)
the problem with _built_in_apply() is you need to know the size of the
stack.
and that's a real issue for method such as +stringWithFormat:... with takes
a variable number of argument
----- Original Message -----
From: "Andrew Pinski" <pinskia@physics.uc.edu>
To: "Mike Stump" <mrs@apple.com>
Cc: "Lloyd Dupont" <lloyd@nova-mind.com>; <gcc@gcc.gnu.org>
Sent: Friday, May 20, 2005 9:53 AM
Subject: Re: ASM help needed... (on x86/windows/gcc)
>
> On May 19, 2005, at 7:49 PM, Mike Stump wrote:
>
>> On May 19, 2005, at 4:08 PM, Lloyd Dupont wrote:
>>> I want to do a binding to ObjectiveC
>>
>> For how you described the question, libffi would be the natural choice
>> and obviates the need for asms or machine dependencies. Maybe Andrew
>> might have some insight into something libobjc specific that might
>> help...
>
> The real question is why do you need objc_msg_send?
> That function is only used for the NeXT runtime.
> You can use the __builtin_apply/__builtin_return to implement this
> but I will warn you that they are really don't work for a lot of stuff.
> You should be using higher level constructs like -[forward::] and stuff.
>
> Thanks,
> Andrew Pinski
>
More information about the Gcc
mailing list