[fpc-devel]I suggest a new FPC feature
Marco van de Voort
marcov at stack.nl
Thu Oct 11 15:05:29 CEST 2001
> On donderdag, oktober 11, 2001, at 01:29 , Michael Van Canneyt wrote:
> >> But please answer to my information: I don't see that you read it.
> >> Summary of my previous messages:
> >> 1) Is my $calling patch interesting for you?
> > I'm not yet convinced of it's usefullness. Do not forget that we're
> > trying to be cross-platform,
> > which means that we should keep in mind conventions on other OS-es,
> > such as Unix.
> 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
I don't exactly know what Pavel's patch does, but I think register
parameters should not be like Delphi, but part of a larger scheme to be able
to fully control the calling conventions (Pascal/C/register/regsaved) This
is also important for being able to inline assembler crossunit to be usefull.
Stdcall should be part of the entire solution, not another hack.
This will also be _very_ important for language interoperability.
More information about the fpc-devel