Related articles |
---|
while loop code generation ast@halcyon.com (1997-12-14) |
Re: while loop code generation gclind01@spd.louisville.edu (1997-12-15) |
Re: while loop code generation burley@cygnus.com (Craig Burley) (1997-12-15) |
Re: while loop code generation tgl@netcom.com (Tom Lane) (1997-12-15) |
Re: while loop code generation n8tm@aol.com (1997-12-15) |
Re: while loop code generation tim@franck.Princeton.EDU.composers (1997-12-29) |
Re: while loop code generation preston@tera.tera.com (1998-01-03) |
From: | tim@franck.Princeton.EDU.composers (Tim Hollebeek) |
Newsgroups: | comp.compilers |
Date: | 29 Dec 1997 21:03:50 -0500 |
Organization: | Chemistry Department, Princeton University |
References: | 97-12-112 97-12-117 |
Keywords: | optimize, code |
Andrew Tucker (ast@halcyon.com) wrote:
> On page 227 of Fraser and Hanson's _A Retargetable C Compiler_,
> they claim that the code
> goto L+1
> L: statement
> L+1: if expression != 0 goto L
> L+2:
This technique is also often important when generating code for
virtual machines, since with the 'obvious' opcodes, it saves an
instruction. Since execution time is often dominated by the overhead
of the virtual machine, minimizing the number of instructions executed
for common constructs can be important.
Tim Hollebeek
email: tim@wfn-shop.princeton.edu
URL: http://wfn-shop.princeton.edu/~tim
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.