Previous in Forum: Computer Security   Next in Forum: REAL TIME COMUNICATION
Close
Close
Close
Rate Comments: Nested
Active Contributor

Join Date: Oct 2008
Posts: 20

Perl Problem

01/23/2009 11:42 PM

In perl, why does the compilation take place from source code to a virtual machine code?What are the advantages of such a procedure when the virtual machine code is only for a virtual machine and cannot run on any existing machine and why is it considered so advanced?

Register to Reply
Pathfinder Tags: perl
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
4
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Perl problem

01/24/2009 4:48 AM

If this technique is not used, it would mean rewriting the whole compiler for each target machine. With this technique, all the 'clever stuff' is done in in going from the high level to the intermediate code, leaving a relatively simple task for producing output for different targets.

It also means changes to the rules in the high level compiler don't change anything in the second stage of compilation (you could even change to a different language, as long as it produced the same intermediate code).

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Good Answer (Score 4)
Register to Reply

Good Answers:

These comments received enough positive votes to make them "good answers".

Previous in Forum: Computer Security   Next in Forum: REAL TIME COMUNICATION
You might be interested in: Bar Code Scanners, Bar Code Cards, Bar Code Software

Advertisement