CPU runtime check

Torbjorn Granlund tege at swox.com
Mon Oct 18 17:12:19 CEST 2004


"Gisle Vanem" <giva at bgnett.no> writes:

  If I distribute programs compiled with this library to users having
  only a plain old Pentium, will these programs run? Or just crash?
  
It will crash.

In general, you need to build it for the host system.

This is documented in the manual that comes with GMP.

  IOW, does gmp have a runtime check that it really is running on a
  Pentium-4/SSE2 procesor?

No.

(The next minor release of GMP, 4.2, will add runtime checks
for some processor families, if it is configured to do so.)

-- 
Torbjörn


More information about the gmp-discuss mailing list