原始文献 / 论坛帖 / Re: New demonstration CPU miner available
Re: New demonstration CPU miner available
Bitcointalk · 2010-11-26 22:02:41 UTC
你应该试试在 sha256.cpp 里用 tcatm 的 4 路 SSE2 SHA。它作为 C 文件编译没问题,只要把 sha256.cpp 改名为 sha256.c。我在 Windows 上简单测试能跑通,但和比特币链接在一起就不行。作为 C 程序的一部分而不是 C++,它可能更有机会跑起来。
目前只在 Linux 构建里启用了,所以如果你能把它搞定,可以让 Windows 用户也用上。在 AMD CPU 上大约快 100%。
英文原文
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.
