community
directory
books
authors
images
encyclopedia

Email:
Password:
Register

Knowledgerush Search

 

Google
  Web knowledgerush


Search for images of Parrot assembly language


Message boards   Post comment

Parrot assembly language

Parrot is a register based virtual machine being developed by the Perl community. It will be the target for the Perl 6 interpreter. Most other virtual machines like the Java virtual machine are stack based. The developers see it as an advantage of the Parrot machine that it more closely ressembles an actual hardware design and that the vast literature on compiler optimization can be used generating code for the Parrot virtual machine.

The project actually started as an April Fool's joke in which a hypothetical language named Parrot was announced that would unify Python and Perl. Later, the name was adopted be this project whose intent is to do just that. Several tiny languages are developed along with it which target the parrot virtual machine.

The Parrot virtual machine uses Parrot assembly language.

Examples

Arithmetic operation:
set I1, 10
inc I1        # I1 is now 11
inc I1, 2     # I1 is now 13
set N1, 42.0
dec N1        # N1 is now 41.0
dec N1, 2.0   # N1 is now 39.0
print I1
print ", "
print N1
print "\
"
end

External link

Referenced By

Perl | Perl programming language | Practical Extraction and Report Language

 

Compose Your Message

Your Email Address or Pen Name (optional):
Subject:
Your Message:
 

 

 

 

 

 

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Parrot assembly language".

 

Contact UsPrivacy Statement & Terms of Use

 
Copyright © 1999-2003 Knowledgerush.com. All rights reserved.