[fpc-pascal] About FPC calling register like Delphi

Alexandre Leclerc alexandre.leclerc at gmail.com
Tue Jan 23 22:51:13 CET 2007


2007/1/23, Florian Klaempfl <florian at freepascal.org>:
> Daniƫl Mantione schrieb:
> >
> > Op Tue, 23 Jan 2007, schreef Alexandre Leclerc:
> >
> >> Hi all,
> >>
> >> I saw some time ago in a roadmap for the next version (1.2?) - that I
> >> can't find anymore - a point about being compatible with Dephi calling
> >> register... And I was wondering if anything has changed in FPC
> >> regarding this?
> >>
> >> (Because I use ROPS and there are issues because it is different from
> >> FPC and Delphi and I was waiting that it is /final/ in FPC so that
> >> ROPS would work ok, or at least fix the thing /finally/ so that it
> >> then works for ever with FPC.)
> >
> > FPC's calling convention is compatible with Delphi, since 1.9.4. There are
> > minor differences in the entry/exit code though, but they do not affect most
> > code.
>
> No, afaik stack paramters are pushed in the wrong order.

Yes, this is exactly this problem that causes many issues in ROPS.
Sorry, I have not been precise enought, this is about the order stack
parameters are pushed.

-- 
Alexandre Leclerc



More information about the fpc-pascal mailing list