Post
Topic
Board Development & Technical Discussion
Merits 3 from 2 users
Re: Question about Wt in the SHA-256 algorithm
by
DannyHamilton
on 15/03/2018, 17:46:53 UTC
⭐ Merited by ETFbitcoin (2) ,Foxpup (1)
these functions must be built at assembly level and not from compiled C++

Whats your thought on this ?

Compiled C++ results in machine code binaries.  Most C++ compilers have been optimized, so if the code is well written then it should run just about as fast as it would if it was written in assembler.

That being said, SHA256 is common enough that it is now implemented directly on the hardware.  That's what an ASIC is.  It's hardware that is custom designed for a single purpose.  The SHA256 maths can all be implemented with combinations of circuits.  As such, the entire calculation can be completed in the amount of time that it takes for the electricity to flow through the circuit.