[fpc-pascal] array of const with cdecl procedure

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 11 20:44:57 CET 2012

On 11 Nov 2012, at 20:42, Bernd wrote:

> Wouldn't it be possible to write a function in pascal that declares a
> simple longint parameter instead of the varargs and then inside the
> function use the stack pointer (the address of that argument) to read
> the entire list from the stack directly?

No, because the C varargs calling convention does not simply pass the parameters on the stack on most platforms.


More information about the fpc-pascal mailing list