[fpc-pascal] array of const with cdecl procedure

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 11 21:03:42 CET 2012


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

> 2012/11/11 Jonas Maebe <jonas.maebe at elis.ugent.be>:
> 
>> No, because the C varargs calling convention does not simply pass the parameters on the stack on most platforms.
> 
> Where else are the arguments if not on the stack?

In registers.

> Everything I have
> read so far about varargs and cdecl says they are on the stack.

Then you probably only read about i386 ABIs (and maybe m68k).


Jonas


More information about the fpc-pascal mailing list