jgarzik / cpuminer

CPU miner for bitcoin
Other
952 stars 2.34k forks source link

Compiler optimization kills cryptopp_asm32 algorithm #12

Closed mrmekon closed 13 years ago

mrmekon commented 13 years ago

Compiling with -O3 causes the minerd to segfault immediately if I specify cryptopp_asm32 as the algorithm. Recompiling without -O3 solves it. All other algorithms seem to work as expected with -O3. -O2 works, as well as giving no optimization parameter.

cryptopp_asm32 seems to give the best performance on this platform. Using it with '-O2 -Wall -march=core2'.

Environment info:

Intel Core 2 4300 @ 1.8GHz (dual core, obviously) Ubuntu Linux w/ 2.6.35-28 SMP kernel, 32bit.

jgarzik commented 13 years ago

sounds like a compiler bug