Re: Efficient bytecode design and interpretation

anton@mips.complang.tuwien.ac.at (Anton Ertl)
3 Jun 2001 17:03:33 -0400

          From comp.compilers

Related articles
Efficient bytecode design and interpretation mg169780@zodiac.mimuw.edu.pl (Michal Gajda) (2001-05-22)
Re: Efficient bytecode design and interpretation anton@mips.complang.tuwien.ac.at (2001-05-29)
Re: Efficient bytecode design and interpretation jonm@fishwife.cis.upenn.edu (2001-05-30)
Re: Efficient bytecode design and interpretation loewis@informatik.hu-berlin.de (Martin von Loewis) (2001-05-30)
Re: Efficient bytecode design and interpretation eugene@datapower.com (Eugene Kuznetsov) (2001-05-30)
Re: Efficient bytecode design and interpretation korek@icm.edu.pl (2001-05-31)
Re: Efficient bytecode design and interpretation usenet.2001-05-30@bagley.org (Doug Bagley) (2001-05-31)
Re: Efficient bytecode design and interpretation anton@mips.complang.tuwien.ac.at (2001-06-03)
Re: Efficient bytecode design and interpretation anton@mips.complang.tuwien.ac.at (2001-06-03)
| List of all articles for this month |

From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.compilers
Date: 3 Jun 2001 17:03:33 -0400
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
References: 01-05-068 01-05-098
Keywords: performance, architecture
Posted-Date: 03 Jun 2001 17:03:33 EDT

  Doug Bagley <usenet.2001-05-30@bagley.org> writes:
[about http://www.bagley.org/~doug/shootout/]
>Not all Gforth solutions have been optimized on my site yet. In
>particular the solutions where other languages use optimized hash
>tables, Gforth uses wordlists, and would probably do better if
>rewritten with a custom hash table implementation.


Wordlists in Gforth and other modern Forth implementations are
implemented using hash tables. I recommend using wordlists in Gforth
were you would use associative arrays in awk. However, it may be
possible to improve the efficiency of the wordlist implementation.


OTOH, the slowdown of gforth over the fastest language implementation
(gcc) is a factor of 10 for both sieve (Gforth's rank: 8 of 27) and
hash (Gforth's rank: 24 of 24), so Gforth's rank may have more to do
with how the other language implementations fare than with Gforth's
performance itself.


- anton
--
M. Anton Ertl
anton@mips.complang.tuwien.ac.at
http://www.complang.tuwien.ac.at/anton/home.html


Post a followup to this message

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