Parrot intermediate representation
Appearance
Template:Future software The Parrot intermediate representation or PIR is one of the two assembly languages for the Parrot virtual machine. The other is Parrot assembly language or PASM. Compared to PASM, PIR provides temporary registers and named registers, simplifying code genaration.
The hello world program in PIR is
.sub hello
print "Hello world!\n"
.end
If the program is saved as hello.pir, it can be compiled and executed with this command: parrot hello.pir