|#532on PLDB||16Years Old||270Users|
The Parrot intermediate representation (PIR), previously called Intermediate code (IMC), is one of the two assembly languages for the Parrot virtual machine. The other is Parrot assembly language or PASM. Compared to PASM, PIR exists at a slightly higher abstraction layer, and provides temporary registers and named registers, simplifying code generation. Read more on Wikipedia...
#!/usr/bin/env parrot .sub 'main' :main say "Hello!" .end
.sub foo .param int a .param int b .local int tmp tmp = a + b .return (tmp) .end