[fpc-pascal] Object Pascal & arm-linux

Koenraad Lelong koen1 at brouwerij.homelinux.net
Mon Jul 21 20:12:15 CEST 2008


Florian Klaempfl schreef:
> Koenraad Lelong schrieb:
>> Florian Klaempfl schreef:
>>> Koenraad Lelong schrieb:
>>>> Hi,
>>>> I successfully ran some MSE-gui test-programs on my arm-board. To do
>>>> this I used a patched fpc 2.2.0-fixes.
>>>> The patch involved backporting a fix from fpc-2.3.1 for
>>>> TBinaryObjectReader : the arm processor has no (AFAIK) extended type. I
>>> Which revision is this?
>>>
>> If you mean 2.2.1 : readme.rev says 8445 for fpc/branches/fixes_2_2
>> If you mean 2.3.1 : svn info fpc says Revision : 9843
>>
>>>> needed 2.2.1 because 2.3.1 breaks MSE-gui.
>> ....
>>> The reader/writer stuff has to take care of this. It applies if the fpu
>>> type is fpa,fpa10 or fp11. You can simply use the define
>>> FPC_DOUBLE_HILO_SWAPPED to detect this. The reason for this is that the
>> How would I do that ? I tried, see enclosed diff, with no solution.
> 
> You've to check for this define and handle double appropriate when
> loading them.

Hi,
At last I found some time to look into this problem.
Martin Schreiber suggested a solution which I implemented and tested
(only the reader part of it).
Enclosed is a patch for reader.inc and writer.inc.
This is for fpc-2.2.2.rc2.
Hope it will be included in the final release.
Regards,
Koenraad Lelong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classes.dif
Type: video/dv
Size: 1654 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20080721/85e43deb/attachment.dif>


More information about the fpc-pascal mailing list