[fpc-pascal] syscalls and fpc
Vincent Snijders
vsnijders at quicknet.nl
Fri Feb 15 19:40:48 CET 2008
Micha Nelissen schreef:
> ik wrote:
>> Actually the assembler is not that hard to understand :)
>> My point is, that I don't like the idea of 7 or 20 or 100 amount of
>> parameters to give answer to every need. I think we should find a
>> better way to implement it, like var args in C or open array in
>> pascal...
>
> The linux kernel interface is always using registers, and since there
> are a limited amount of registers, there is a max. number of arguments.
> IIRC the maximum is 6, i386 limited: eax, ebx, ecx, edx, esi, edi, ebp.
Fortunately I studied mathematics, so I can count the mentioned
registers: 7.
Vincent
More information about the fpc-pascal
mailing list