[hashcash] Re: cpu detection, disabling mmx code on non mmx cpu (Re: Re: status of hashcash version 1?)

  • From: Jonathan Morton <chromi@xxxxxxxxxxxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Wed, 4 Aug 2004 10:27:07 +0100

Jonathan> Yes, that's correct.  The detection code relies on the CPUID
Jonathan> instruction being present (which is why it'll probably break
Jonathan> nastily on old CPUs like the 386), but it can in turn be
Jonathan> short-circuited out by compiling without MMX support.

Does it work on 486?  IIRC, under Debian, we're now allowed to compile
for i486 (though I'll have to double-check).

That, I'm not sure. My 486s are presently without HDs or any way of booting, and I haven't looked at the docs anytime recently. I'm only certain that CPUID doesn't work on a 386.


--------------------------------------------------------------
from:     Jonathan "Chromatix" Morton
mail:     chromi@xxxxxxxxxxxxxxxxxxxxx
website:  http://www.chromatix.uklinux.net/
tagline:  The key to knowledge is not to rely on people to teach you it.


Other related posts: