Made compiler/now how to make interpreter faster?

swoo@pobox.com
10 Dec 1997 00:37:54 -0500

          From comp.compilers

Related articles
Made compiler/now how to make interpreter faster? swoo@pobox.com (1997-12-10)
Re: Made compiler/now how to make interpreter faster? marlet@irisa.fr (1997-12-12)
Re: Made compiler/now how to make interpreter faster? johncrow@mindspring.com (1997-12-12)
Re: Made compiler/now how to make interpreter faster? dlmoore@ix.netcom.com (David L Moore) (1997-12-12)
Re: Made compiler/now how to make interpreter faster? anton@mips.complang.tuwien.ac.at (1997-12-12)
| List of all articles for this month |

From: swoo@pobox.com
Newsgroups: comp.compilers
Date: 10 Dec 1997 00:37:54 -0500
Organization: none
Keywords: performance, question

I have used lex and yacc to create a parser which spits out an
bytecode file. The bytecode file is read by the interpreter at a
later time and executed. What are good sources for information on how
to change the bytecode stream/interpreter/compiler for the fastest
executing code? Compared to plain C code the interpreter is much much
slower, about 50-100x for a repeated loop, which seems pretty poor.
[I'd start by profiling your program to make sure you understand where
the slowness is. Once you know where the slowness is, one approach
that's often effective is to add a few specialized bytecodes for frequently
repeated complex tasks. -John]




--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.