[fpc-pascal]Three little pig... uh, questions :-)

Pierre Muller pierre at freepascal.org
Thu Nov 23 15:26:49 CET 2000

At 15:07 23/11/00 , vous avez écrit:
> >1. Isn't FPC able of the standard pascal calling convention (pushing
> >parameters left-to-right, function removes parameters)?
>Use the "stdcall" modifier.

No, this doesn't change the order of pushing parameters,
it only changes the way the parameters are removed
from stack (by ret $NN in the procedure/function)
as opposed to the cdecl modifier where the args are removed from stack
after the return by the code that called the function.

The is a "pascal;" modifier, but it is allmost completely untested.
Check if it works.

More information about the fpc-pascal mailing list