Re: Ver 4.0 call_back question ?
- Posted by mattlewis (admin) Jun 08, 2009
- 862 views
Using Ver 4.0 how do you do a callback to Euphoria from
a ASSEMBLER.
In version 3.11 you could just call the address of the
Euphoria routine after placing the parameters on the stack.
Every since Euphoria started using STDCALL things have become
more difficult.
What was the purpose of changing to STDCALL please don't tell
me that It was because of windows needing STDCALL's because
that is a myth because Microsoft OS software is smart enough
to automatically detect and adjust for the way it is called.
Nothing has changed in this respect AFAIK. Microsoft doesn't do anything with regards to the calling convention. Watcom, however, does. I've never had a problem when I've used the same calling convention between caller and callee.
The only thing that has changed with respect to callbacks is to support DEP. But I don't think this affects the calling convention at all. It basically ensures that the callback code is in memory marked for execution.
Matt