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. Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal