Jalada home about archive

Intermediate Languages

25th February 2010

These are lecture notes from my Computer Science course, not a general reference for "Intermediate Languages"

You’re going to have to write a lot of compilers if you go from language to assembly. So why not put an intermediate language in the middle. Then you can reuse optimisation phases and mainly it saves a huge amount of work.

Requirements of IL

So basically, make your own assembly language?

You might have several ILs. In gcc you have generic to gimple (SSA) to RTL to target asm.

Classes of intermediate language

Comparison of IL

Note that it’s important to differentiate between the language and the code. The intermediate language is target language independent, but the generated intermediate code is target machine specific because it contains addresses and offsets.

Comments

blog comments powered by Disqus