[fpc-devel] ABI question PPC, ARM: position of SELF

Martin lazarus at mfriebe.de
Fri Dec 7 18:33:59 CET 2012


On 07/12/2012 17:22, Jonas Maebe wrote:
> On 07 Dec 2012, at 18:10, Martin wrote:
>
>> But today, there is no better way, to use PascalScript in a compiled app. Once a released FPC offers a better way, well great. But till then, I must go the risky way (or not go at all).
> Mixing dynamically calling routines whose calling ABI interface is not rigidly defined is broken by design. The proper way would be to generate cdecl wrappers (because the cdecl calling convention is fully specified in the various ABIs) and calling those.
>
>
Well ok.

For explanation:

I don't plan to make this my problem right now (it may later force 
itself, but not now)
My plan was to use PascalScript. Not to rewrite it.  Now I already am 
fixing it (so strictly speaking, those fixes are (as you pointed out) 
not a real solution)

I looked at it. It looks only 32bit intel has all calling conventions 
already implemented in PascalScript. The other would need to be written 
from scratch. Not something, that I plan to do now. After all, it isnt 
my project. I will contribute those "fixes" that I do need.

Thanks again for all the help. For the rest, I will simple hope, that it 
works until a better solution exists.



More information about the fpc-devel mailing list