[fpc-devel]I suggest a new FPC feature

Jonas Maebe jonas at zeus.rug.ac.be
Thu Oct 11 15:10:57 CEST 2001

On donderdag, oktober 11, 2001, at 03:05 , Marco van de Voort wrote:

>> Actually, stdcall is *the* standard calling convention for the 80x86
>> architecture, no matter under which OS you run. It defines ebx esi and
>> edi as non-volatile (ie if the callee modifies them, it has to save 
>> them
>> first) and eax, ecx and edx as non-volatile (if the caller wants to use
>> their current values after it called the subroutine, it should save 
>> them
>> first).
> I don't exactly know what Pavel's patch does, but I think register
> parameters should not be like Delphi,

I wasn't talking about register parameters, I was talking about which 
registers must be saved by the caller and which by the callee. Register 
parameters are orthogonal to this (ecept that you can only use registers 
which are caller-saves for register paramters)


More information about the fpc-devel mailing list