Got it to compile on a Classic Mac, mostly by hacking out all the option parsing. The below is using CodeWarrior Pro 5, optimised for a PPC601 or 68020.First, a 1600MHz Athlon-XP:Please run the C hashcash code found at hashcash.org. I would appreciate seeing
the performance numbers. I would also like to see them for any non Intel
machines as well like Sparc and Alpha.
I'll see what I can pull together.
chromi@hydrogen hashcash-0.27 $ ./hashcash -s -b 20
time estimate: 2 seconds
chromi@hydrogen hashcash-0.27 $ ./hashcash -s
speed: 649351 collision tests per second
Second, a 200MHz Pentium-MMX:
chromi@lithium hashcash-0.27 $ ./hashcash -s -b 20
time estimate: 15 seconds
chromi@lithium hashcash-0.27 $ ./hashcash -s
speed: 69396 collision tests per second
Both of the above are using GCC3 with default compile options, no architecture or CPU specific stuff. Surprisingly, the scaling looks linear with clock speed, an old Pentium isn't usually this good when compared with an Athlon. I'll have to examine the algorithm and figure out why.
It doesn't compile first time on the Macs, will need to hack on it a bit.