logoalt Hacker News

HappMacDonald • today at 7:59 AM • 1 reply • view on HN

At a guess, because it is easier to control timing in assembly than in a higher level language that will compile your source code into whatever shape it feels like


Replies

cowlevel • today at 1:11 PM

It's still impossible to control actual timing, but easy to ensure control flow isn't data-dependent, which is what you need. Classic example is memcmp. Although you can write the or-then-check-zero memcmp in any high level language and it's very unlikely to compile to data-dependent timing unless your compiler is AGI.

➕ show 1 reply