Skip to main content
Post Made Community Wiki by maple_shaft
Source Link
Kevin Krumwiede
  • 2.6k
  • 1
  • 18
  • 20

Processor instruction sets are fundamentally imperative, but programming languages can be declarative. Running a program written in a declarative language inevitably requires some type of code generation. As mentioned in this answer and others, a major reason for generating source code in a human-readable language is to take advantage of the sophisticated optimizations performed by compilers.