[fpc-pascal] About FPC calling register like Delphi

Alexandre Leclerc alexandre.leclerc at gmail.com
Thu Jan 25 14:44:39 CET 2007


I did try a latest version and I think there was no changes on that. (?)

Are there plans to set the param-stack the same order as Delphi or
will the actual code always stay like that?

(I ask, because from different FPC release, ROPS always react
differently. So I know some things are changing in FPC; but it does
not give me the required stability to get a final patch to any
problems.)

Best regards.

2007/1/23, Alexandre Leclerc <alexandre.leclerc at gmail.com>:
> 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
>


-- 
Alexandre Leclerc



More information about the fpc-pascal mailing list