View Single Post
Old 30 December 2013, 13:47   #27
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 36
Posts: 3,368
When thinking further, I have a bit more to add about my last post. If the native interface knows the signature of the function (as in my last example), the native interface could just read the parameters off the Amiga stack (if the Amiga stack pointer is valid when control is passed to UAE code). Then, the native code could call a generated Amiga stub function for the call (which simply invokes the native interface with the correct function handle). This would allow the Amiga side to invoke the native interface with just a normal C function prototype declaration?

Of course, none of this is really necessary, and we are in some ways trading flexibility for "elegance" here -And it is somewhat contrary to my initial thoughts of just keeping the native interface bridge itself really simply.

Any thoughts on the different calling conventions?
FrodeSolheim is offline  
 
Page generated in 0.04648 seconds with 9 queries