Patrik Stridvall <[EMAIL PROTECTED]> writes:

> Once you get to the thunk, it doesn't matter if you rearange
> the arguments for a stdcall or if you call the emulator
> or if you do a IA-64 to/from IA-32 on Itanium or whatever
> you wish to do. Once you get the thunking layer in place
> it can be adapted to the current situation. Of course
> there are some implementation detail, like on Itanium
> and possibly also with the emulator you will need a thunk pair
> because of the asymmetric intercalling but that is just
> implementation details that doesn't effect the interface
> of the thunking layer.

Of course you can build a completely generic thunking layer that traps
every single call, and do everything from there. If you can do it
without requiring source modifs and without performance impact, I'll
be more than happy to put it in.

But if your generic thunking layer does impact performance or
readability (which I think it will), then it becomes a question of
cost vs. benefit. And in the case of stdcall the benefit is so small
that I seriously doubt you can make it worthwhile. If you disagree, by
all means go ahead and implement it, and then we'll judge on the
code.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to