Re: cdecl support
- Posted by kbochert at ix.netcom.com Feb 26, 2002
- 437 views
-------Phoenix-Boundary-07081998- Hi Robert Craig, you wrote on 2/26/02 9:19:35 PM: > >For most Euphoria programs, preserving the stack pointer >as you describe, will probably solve the problem, >but there's a bit more to it than that. >According to the notes I made a year ago, >structures, and floating point values (C doubles), are also >passed and returned differently. Structures don't matter >to us, but doubles occasionally do. > It seems that the problems are in four areas: 1) Different Stack cleanup: Fairly easy. 2) Different Name Mangling: Doesn't Euphoria already depend on the programmer using the decorated name? 3) Different double return location: Give 2) above, doesn't the C function name describe the calling convention? 4) Different structure handling: Ditto 3) Karl -------Phoenix-Boundary-07081998---