Am 03.10.2018 um 14:23 schrieb Ozz Nixon:
Thank you for explaining. Since I am needing compatibility at the disk level (binary form)... does anyone know of a unit or some routines to read/write: Comp, Double, Extended byte for byte the same? (even if it translates to something different at run time or in the dataset). If it was for the fact I maintain Halcyon (xBase) code I would slap this all in a DB server. Which also means my port of Accuracer (aidaim.com <http://aidaim.com>) is also going to have similar problems. :-(
You can use FPC's softfpu unit though it is not compiled for all targets currently. But you can copy it from $fpcdir/rtl/inc/softfpu.pp and compiler yourself. Then you can use the type tfloat80 which is essentially Extended on which you can also use the operations defined in the softfpu unit (for convenience you could add a unit with operator overloads).
Please note that Double is always the same on the main platforms and thus doesn't need special handling.
Regards, Sven
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
