2 ms·
> C translates directly to ASM in many cases. But usually much worse ASM than what a human would write on such CPUs, because the C compiler is still restricted
by flohofwoe 5y ago
> C translates directly to ASM in many cases.
But usually much worse ASM than what a human would write on such CPUs, because the C compiler is still restricted by artificial high-level concepts like calling conventions, and it needs to wrestle with instruction sets that are not very compiler-friendly and tiny non-orthogonal register sets. C++ just adds a whole level of code obfuscation on top, so it's harder to tweak what code the compiler actually generates.