[Vm-dev] FloatMathPlugin and -lm (libm)
stes at telenet.be
Fri Jul 17 18:46:18 UTC 2020
-----BEGIN PGP SIGNED MESSAGE-----
I've noticed that in the FloatMathPlugin there is fdlibm
(freely distributable libm) :
This refers to the platforms/Cross/third-party/fdlibm
I wonder whether the VM shouldn't be using the system provided libm (-lm).
Perhaps for Croquet or other software that depends on FLoatMathPlugin,
a special test framework could be ran in Squeak,
or perhaps as part of "./configure" configuration, to check the results,
of the underlying (system) libm, so that it provides results similar to fdlibm ?
Maybe fdlibm and libm "run bit identically" on some platforms.
This is because for Croquet the goal is to have the VM run bit identically.
Using the system provided -lm would possibly result in a smaller executable,
with less duplicated code (no overhead).
I'm no expert on libm, but perhaps the system provided libm is also faster.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the Vm-dev