Related articles |
---|
Virtual Machine - Tiny Basic hrm@terra.com.pe (Hugo Rozas M.) (2000-08-20) |
Re: Virtual Machine - Tiny Basic Brent.Benson@oracle.com (Brent Benson) (2000-08-27) |
Re: Virtual Machine - Tiny Basic ceco@jupiter.com (Tzvetan Mikov) (2000-09-08) |
Re: Virtual Machine - Tiny Basic stephan@pcrm.win.tue.nl (2000-09-09) |
From: | "Hugo Rozas M." <hrm@terra.com.pe> |
Newsgroups: | comp.compilers |
Date: | 20 Aug 2000 23:59:09 -0400 |
Organization: | Compilers Central |
Keywords: | Basic, interpreter, question |
Hi 2 All;
I will make some newbie questions; Plz. sorry about that.
I am making a tiny basic interpreter and I have seen that
there is two ways of do that :
1- The first one is to read the source and generate intermediate
code; Then and Interpreter reads and executes the tokenized
one.
2- The second one is to generate some kind of pseudo-Assembler,
then a virtual machines reads and executes this.
I seems that actually the second method (VM) is the most popular. My
question is why?; When I generate a pseudo-Assembler that needs to be
interpreted and executed by the VM; I'am not creating another layer
that will slow down the execution?
If VM is the way to go, someone knows a page that shows the theory of
Virtual Machine design?
Thanx in Advance
Hugo
Return to the
comp.compilers page.
Search the
comp.compilers archives again.