Re: Jonesforth and Hayes CORE tests
- From: Andrew Haley <andrew29@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Oct 2009 03:25:41 -0500
Anton Ertl <anton@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Andrew Haley <andrew29@xxxxxxxxxxxxxxxxxxxxxxx> writes:
[Traditional ITC implementation of CREATE...DOES> and cache
consistency issues:]
Actually, that's not quite true: there is a pathological case where it
could happen, something like:
: array create does> cells + ;
array foo 20 cells allot
Here, the data may end up in the same cache line the defining word,
Yes. These kinds of problems have plagued various Forth systems since
the instruction caches was separated from the data cache in the
Pentium. E.g, such an issue is the reason why BigForth is about 30
times slower than iForth on cd16sim, and probably also why BigForth is
slower than Gforth on brew and lexex.
You may consider it pathological, but it still occurs in real-world
code, and pretty often. The main programs where it occurs rarely are
the small benchmarks that are often used to evaluate performance.
I would have expected that precisely the reverse was true, since small
benchmarks are where small defining words and there children are
likely to be close enough to be on the same cache line.
Andrew.
.
- Follow-Ups:
- Re: Jonesforth and Hayes CORE tests
- From: Anton Ertl
- Re: Jonesforth and Hayes CORE tests
- References:
- Jonesforth and Hayes CORE tests
- From: Richard Russell
- Re: Jonesforth and Hayes CORE tests
- From: Andrew Haley
- Re: Jonesforth and Hayes CORE tests
- From: Albert van der Horst
- Re: Jonesforth and Hayes CORE tests
- From: Richard Russell
- Re: Jonesforth and Hayes CORE tests
- From: Andrew Haley
- Re: Jonesforth and Hayes CORE tests
- From: Richard Russell
- Re: Jonesforth and Hayes CORE tests
- From: Andrew Haley
- Re: Jonesforth and Hayes CORE tests
- From: Andrew Haley
- Re: Jonesforth and Hayes CORE tests
- From: Anton Ertl
- Jonesforth and Hayes CORE tests
- Prev by Date: Re: gforth fcopysign problem
- Next by Date: Re: Jonesforth and Hayes CORE tests
- Previous by thread: Re: Jonesforth and Hayes CORE tests
- Next by thread: Re: Jonesforth and Hayes CORE tests
- Index(es):
Relevant Pages
|
Loading