Do VMs like LLVM or PARROT allow usage of the same library from multiple languages?
-
22-08-2019 - |
Question
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)...
Solution
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:
- LLVM allows you to call other LLVM code and also external C like libraries.
- Parrot allows you to call other Parrot code, but not external C like libraries.
http://en.wikipedia.org/wiki/Comparison_of_application_virtual_machines
OTHER TIPS
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