[Vm-dev] FloatMathPlugin and -lm (libm)

stes@PANDORA.BE stes at telenet.be
Fri Jul 17 18:46:18 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


I've noticed that in the FloatMathPlugin there is fdlibm
(freely distributable libm) :

platforms/Cross/plugins/FloatMathPlugin

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,
see https://en.m.wikipedia.org/wiki/Croquet_Project
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.

Regards,
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfEfHMAAoJEAwpOKXMq1Ma1psH/2yaIMdU6YMV8ZUSRlolvsH8
jlcuxPZV/Oo0FOq+jF2moBV01WquA8vCxZKm40s7ofrac7dWuNaaWwpDg/2xiVGc
p0crmTlv9FtHqTzjT3lrBMDxvOwq9oXAJUX+LaeGhNkYMbLE969m8hoRNSlDPPuk
NsXowTP7PpjyZ5RB5FApRHEnBzzyHjUIksUUhedCDWQRMqebEwxmHWbq6UobcED7
zVDx04crvw2hhzhKN8+AomZXNccMTDEQ6fTVBDeP7t4/iRmxo/6MmxOKMbQJ5dIi
fgYpODPPvXiAYipVx/lRXhgo5xEjQXgPjwBXKYQy8O2vJdH/0q/7r8u8k1MutbI=
=lWqV
-----END PGP SIGNATURE-----


More information about the Vm-dev mailing list