Chapter 9. Parrot Assembly Language

     

Parrot assembly (PASM) is an assembly language written for Parrot's virtual CPU. PASM has an interesting mix of features. Because it's an assembly language, it has many low-level features, such as flow control based on branches and jumps , and direct manipulation of values in the software registers and on the stacks. Basic register operations or branches are generally a single CPU instruction. [1] On the other hand, because it's designed to implement dynamic high-level languages, it has support for many advanced features, such as lexical and global variables , objects, garbage collection, continuations, coroutines, and much more.

[1] This means the JIT run-time has a performance of up to one PASM instruction per processor cycle.



Perl 6 and Parrot Essentials
Perl 6 and Parrot Essentials, Second Edition
ISBN: 059600737X
EAN: 2147483647
Year: 2003
Pages: 116

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net