[fpc-devel] update on freepascal armhf porting, doubles are working now for singles.
plugwash at p10link.net
Tue Mar 20 20:44:07 CET 2012
>> I can now successfully pass doubles to/from C functions on armhf. I've
>> written a test program that passes lots of different combinations of
>> single/double/longint/int64 to C code and all combinations that do not
>> involve singles are working.
> It would also be helpful to add this test to the testsuite
> we do have some tests in test/cg
> but it wouldn't hurt to add more of that type!
I've attatched the program that generates the test program, if you need
it under a
specific license just ask.
Currently it is set up to test all combinations of up to four parameters
and a more
limited set of combinations up to 17 parameters but these are both
The generator has two modes, if the letter c is passed as the first
parameter it operates in "pascal calling c" mode. Otherwise it operates in
"pascal calling pascal mode".
In "pascal calling c" mode two files are generated. testfp.dpr and
in "pascal calling pascal" mode only one file is generated.
Note that "pascal calling c" mode makes some assumptions about the
of pascal and c basic types. These assumptions should hold on most platforms
but there may be some where they do not.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the fpc-devel