[fpc-devel] Calling conventions

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jan 4 13:00:21 CET 2011

On 04 Jan 2011, at 07:00, Andrew Haines wrote:

> Can something like this be added to the compiler so that when it  
> detects
> a TMethod being assigned to a "plain" callback type it inserts some  
> code
> to call my function?

I doubt it. There is also already a project out there whose sole focus  
is on offering a high level interface to calling functions with  
different calling conventions, and afaik it also contains trampoline  
support. See http://sourceware.org/libffi/ for more information.


More information about the fpc-devel mailing list