PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

PIR

PIR

PIR is a pl created in 2006.

#532on PLDB 16Years Old 270Users
0Books 0Papers 0Repos

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...


Example from Linguist:
#!/usr/bin/env parrot .sub 'main' :main say "Hello!" .end
Example from Wikipedia:
.sub foo .param int a .param int b .local int tmp tmp = a + b .return (tmp) .end
amqp.html 路 parrot-internal-representation.html 路 sql-92.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com