Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Parrot assembly language
Assembly language

The Parrot assembly language (PASM) is the basic assembly language used by the Parrot virtual machine.

PASM is the lowest level assembly language in the Parrot stack. The Parrot intermediate representation (PIR) is PASM extended to simplify development of compilers.

The hello world program in PASM is simply:

print "Hello world!\n" end

Although it appears similar to source code in some high-level programming languages, more complex PASM programs will resemble other assembly languages. The main exceptions to this low level programming in PASM are string handling and, as shown above, input and output. Additionally, PASM has automatic garbage collection from the virtual machine, and it does not allow pointer arithmetic.

Parrot assembly language has more instructions than hardware assembly languages, even CISC processors. This is because the marginal cost of creating a new instruction in Parrot is low compared to the marginal cost of doing so in hardware, and the creators of Parrot had no particular goal of minimalism.

We don't have any images related to Parrot assembly language yet.
We don't have any YouTube videos related to Parrot assembly language yet.
We don't have any PDF documents related to Parrot assembly language yet.
We don't have any Books related to Parrot assembly language yet.
We don't have any archived web articles related to Parrot assembly language yet.

External sources

  • Free and open-source software portal