3 ms·
Compilers like that would go directly from text -> machine instructions, step by step (or to very close approximation) because that is all you had the time and
by jackmott42 4y ago
Compilers like that would go directly from text -> machine instructions, step by step (or to very close approximation) because that is all you had the time and memory for.
Modern compilers lex then parse into tree structures and then do lots of mutations and traversals of that tree to optimize in different ways for different architectures, and more code is included at once to make more optimizations possible and on and on and on.
- pjmlp 4y agoModern compilers like in 1970s? https://en.wikipedia.org/wiki/PL/8 https://en.wikipedia.org/wiki/PL/8 Or like the 1980s? https://en.wikipedia.org/wiki/Amsterdam_Compiler_Kit https://en.wikipedia.org/wiki/Amsterdam_Compiler_Kit