Comment by pjmlp

7 years ago

When I went over the tiger book back at the university, our teacher had a cool approach to overcome that.

Generate bytecode, but in a form that could be easily mapped to macros on a Macro Assembler, thus we only needed to write such macros for each target platform.

From performance point of view it was quite bad, but we got complete AOT static binaries out of it anyway.