[fpc-pascal] syscalls and fpc
florian at freepascal.org
Fri Feb 15 19:42:58 CET 2008
Vincent Snijders schrieb:
> 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
>> 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.
One stores the syscall number.
More information about the fpc-pascal