Mail Archives: djgpp/1997/02/20/02:03:43
On Thu, 20 Feb 1997, Luke Lee wrote:
> Does any one know how to write a function with pascal calling
> convention ? I've got some 'machine codes' which are made of .
> And I've called them successfully, but, I must reverse my
> parameters everytime I call it.
I didn't really test this (so caveat emptor), but it seems that declaring
your function with the `stdcall' attribute and using the -mrtd switch to
gcc is what should make the trick for you. The "Function Attributes" and
"i386 Options" sections in the gcc info docs is where you should read
about them.
- Raw text -