Parrot assembly language

Parrot assembly language

The Parrot assembly language or PASM is the basic assembly language used by the Parrot virtual machine, a part of the Perl 6 project.

PASM is the lowest level assembly language. The Parrot intermediate representation or PIR is PASM, extended to simplify development of compilers.

The hello world program in PASM is simply print "Hello world! " endThough that looks like it would in some high-level languages, anything more complex than hello world starts to look very similar to other assembly languages. The main exceptions, though, to this low level are the string handling and, as it can be seen 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 any hardware assembly language, even any CISC processor. This is because it is very low-cost to make a new instruction in something like Parrot compared to the cost of making an instruction in hardware, and the creators of Parrot had no particular goal of minimalism.

External sources

* [http://www.parrotcode.org/docs/pdd/pdd06_pasm.html Parrot assembly language: design document]
* [http://www.parrotcode.org Parrot main site]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Parrot virtual machine — Developer(s) Parrot Foundation Stable release 3.10.0[1] / November 16, 2011; 7 days ago …   Wikipedia

  • Parrot — Тип виртуальная машина Разработчик The Perl Foundation Операционная система Кроссплатформенное программное обеспечение Последняя версия 4.6.0 (16 июля …   Википедия

  • Parrot (disambiguation) — Parrot can refer to:* Parrots (psittacines), any of about 353 species of bird belonging to the biological order Psittaciformes, which includes: **True parrots **Cockatoos * Psittacosis (parrot disease or parrot fever), an infectious disease of… …   Wikipedia

  • Parrot intermediate representation — The Parrot intermediate representation or 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… …   Wikipedia

  • language — /lang gwij/, n. 1. a body of words and the systems for their use common to a people who are of the same community or nation, the same geographical area, or the same cultural tradition: the two languages of Belgium; a Bantu language; the French… …   Universalium

  • Mod parrot — is an optional module for the Apache web server. It embeds a Parrot virtual machine interpreter into the Apache server and provides access to the Apache API to allow handlers to be written in Parrot assembly language, or any high level language… …   Wikipedia

  • Jako (programming language) — Jako is a programming language created by Gregor N. Purdy. It is similar to C++, but makes several large deviations, in some ways making it closer to Perl. Jako can be compiled into Parrot s assembly language, PASM, and then run on the Parrot… …   Wikipedia

  • Dynamic Language Runtime — Developer(s) Microsoft Dynamic Language Runtime Team Stable release 1.0 / April 16, 2010 Operating system Microsoft Windows, Debian, Ubuntu Platform …   Wikipedia

  • mod_parrot — is an optional module for the Apache web server. It embeds a Parrot virtual machine interpreter into the Apache server and provides access to the Apache API to allow handlers to be written in Parrot assembly language, or any high level language… …   Wikipedia

  • PASM — may refer to: Parrot assembly language Pima Air Space Museum, in Tucson, Arizona, United States Program mode, aperture priority, shutter priority, and manual modes on the mode dial in SLR photographic cameras St. Mary s Airport (Alaska), ICAO… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”