Jox
Jox

Reputation: 7172

Do VMs like LLVM or PARROT allow usage of the same library from multiple languages?

Is it possible to use one framework written in one Parrot (LLVM) language in any other Parrot (LLVM) language? (Like usage of .NET Framework from any CLR language)...

Upvotes: 5

Views: 1213

Answers (2)

jhuni
jhuni

Reputation: 425

LLVM

Stands for low-level virtual machine. It uses low-level opcodes that easily map to native machine code.

  • Languages: Fortran, C, C++
  • Applications: Systems Programming, Compiler Development

Parrot:

This is a high-level virtual machine. Its opcodes are much higher level then those in most virtual machines. This allows Parrot to generate efficient native code for dynamic languages.

  • Languages: Ruby, Perl, PHP
  • Applications: server-side scripting

Upvotes: 1

Unknown
Unknown

Reputation: 46783

Parrot and LLVM are two different things made by two different organizations.

Parrot is a VM, and LLVM is a VM that can also compile statically.

Edit

Assuming the comments to my answer are correct:

  1. LLVM allows you to call other LLVM code and also external C like libraries.
  2. Parrot allows you to call other Parrot code, but not external C like libraries.

http://en.wikipedia.org/wiki/Comparison_of_application_virtual_machines

Upvotes: 1

Related Questions