An MLRISC based compiler, on the other hand, translates the
intermediate representation into MLRISC instructions and it is the
MLRISC instructions that get mapped onto instructions of the target
architecture. Another possibility is to translate the front end
abstract machine instructions instead of the intermediate
representation. Once MLRISC instructions have been generated,
nearly all aspects of high quality code generation come for free. A
long story would be cut short if MLRISC were just another abstract
machine.
The key idea behind MLRISC is that there is no single MLRISC instruction set or intermediate program representation, but the MLRISC intermediate representation is specialized to the needs of the front end source language being compiled. The specialization does not stop there, but the:
It is important to emphasize that there are no optimizations performed on the MLRISC intermediate representation. All optimizations are done on a flowgraph of target machine instructions, and the MLRISC intermediate representation is just used as a stepping stone to get to the flowgraph.