|General byte-codes reference firstname.lastname@example.org (Makhno) (2000-12-07)|
|Re: General byte-codes reference email@example.com (Trent Waddington) (2000-12-08)|
|Re: General byte-codes reference firstname.lastname@example.org (Daniel Dunbar) (2000-12-08)|
|Re: General byte-codes reference email@example.com (2000-12-11)|
|Re: General byte-codes reference firstname.lastname@example.org (2000-12-11)|
|Re: General byte-codes reference Norman_member@newsguy.com (Norman Culver) (2000-12-18)|
|Re: General byte-codes reference email@example.com (2000-12-18)|
|Re: General byte-codes reference firstname.lastname@example.org (Pat Caudill) (2000-12-18)|
|Re: General byte-codes reference email@example.com (2000-12-20)|
|Re: General byte-codes reference firstname.lastname@example.org (2000-12-21)|
|Re: General byte-codes reference email@example.com (2000-12-31)|
|From:||firstname.lastname@example.org (Dave Harris)|
|Date:||18 Dec 2000 12:16:26 -0500|
|Posted-Date:||18 Dec 2000 12:16:26 EST|
Norman_member@newsguy.com (Norman Culver) wrote (abridged):
> You have to take into account various factors such as CPU speed,
> memory speed and cache size. I've been doing a series of experiments
> with interpreters hand coded in assembler for some of the latest
> processors. It is possible to fit an entire interpreter into the L1
> cache (64 KB) of a 1 Ghz AMD but it won't fit into the 16 KB cache of
> a Pentium III. The Pentium IV with 12,000 trace cache entries looks
> very interesting but I don't have one to play around with.
For comparison, there is a Microsoft Research paper "Finite-State Code
Generation" which talks about a JIT-compiler which fits in 8k of x86.
They claim the total time of JIT+execution is within 2-4x of typical
static compiler generated code.
These kinds of results lead one to question whether interpreting
bytecode is worth doing at all. Interestingly, the bytecode for
Microsoft's new C# language was designed to be compiled, not
interpreted. I don't know but I assume it's design was influenced by
Dave Harris, Nottingham, UK | "Weave a circle round him thrice,
email@example.com | And close your eyes with holy dread,
| For he on honey dew hath fed
http://www.bhresearch.co.uk/ | And drunk the milk of Paradise."
[It's probably worth doing where the size of the application isn't worth
the extra effort to run a compiler, but I agree that JIT compilers can
work very well. -John]
Return to the
Search the comp.compilers archives again.