logoalt Hacker News

account42yesterday at 3:50 PM3 repliesview on HN

Low level code can and should use assembly to get the precise effect they desire in these cases.


Replies

echoangleyesterday at 3:58 PM

Why not just allow infinite loops instead of having me write assembly for it though?

show 1 reply
mdspanyesterday at 3:53 PM

That would be pretty cumbersome though. If you're targeting N different architectures, you would have to write N different assembly blocks.

rcxdudeyesterday at 3:54 PM

I shouldn't need to drop to assembly to get an infinite loop that works!