4 ms·
Working around the memory/cpu tradeoff was the traditional reason for writing SMC. For instance, you wrote the code to XOR a line to the screen. Maybe you also
by Jyaif 5y ago
Working around the memory/cpu tradeoff was the traditional reason for writing SMC.
For instance, you wrote the code to XOR a line to the screen.
Maybe you also want an AND version and a OR version, but you don't want to pay the cost of having an "if" in the middle of the loop that checks what kind of operation you want to do.
You also don't want to ship 3 nearly identical versions of the code, so you ship one version and patch it at runtime.