(context post by jgarzik)
FWIW, the default bitcoin miner also does this — it just doesn’t print out when it “finds some zeroes”, only when a real proof of work is found.
Thus, my CPU miner always shows when it stops working on a solution, and starts working on a new solution. Just giving you a bit more information on the whole process.
Attached is a Windows executable build with mingw32. I’d be interested to know if it works.
run “minerd.exe —help” or “minerd.exe -h” to show command line options.
minerd.exe SHA-1 sum: 722fa3b956de3ed3438ed3294fe191f0d55c1514 minerd.exe MD5 sum: 9f75f8da7a5d02da1d45d46d4a032489
You should try it with tcatm’s 4-way SSE2 SHA in sha256.cpp. It compiles fine as a C file, just rename sha256.cpp to sha256.c. I was able to get it to work in simple tests on Windows, but not when linked in with Bitcoin. It may have a better chance of working as part of a C program instead of C++.
Currently it’s only enabled in the Linux build, so if you get it to work you could make it available to Windows users. It’s about 100% speedup on AMD CPUs.