← Back to context

Comment by mrhottakes

2 days ago

Do typesetters or compilers write the code for you? Or are you perhaps using a disingenuous analogy?

A compiler writes the ASM code for you, and the typesetter does the layout for you, yes absolutely.

The high level language code is a prompt for the compiler. Consider that there is parsable C code whose behavior is not even defined. There are still bugs in compilers today, where the code produced is not what you intended. And further, modern compilers do lots of work to optimize performance. You usually don’t even look at the resulting code, you just gratefully accept the rewrite for the extra oomph.