[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[f-cpu] dynamic code reuse
- To: f-cpu@seul.org
- Subject: [f-cpu] dynamic code reuse
- From: Nicolas Boulay <nico@seul.org>
- Date: Sun, 7 Dec 2003 16:19:58 +0000
- Delivered-to: archiver@seul.org
- Delivered-to: f-cpu-outgoing@seul.org
- Delivered-to: f-cpu@seul.org
- Delivery-date: Sun, 07 Dec 2003 10:14:38 -0500
- Reply-to: f-cpu@seul.org
- Sender: owner-f-cpu@seul.org
- User-agent: KMail/1.5
There is a branch of studies concerning the reuse of soon calculated value in
code.
http://citeseer.nj.nec.com/sodani97dynamic.html
The idea from the paper is that there is always some result in the code that
have been soon calculated. The idea is to reuse the result instead of
recalulate it. Increase speed could reach 20%.
This gave me an idea but with software support.
This is a kind of jump instruction. The jump take some register and one
adresse. If the content of the r register + the PC match a internal specific
cache the result of 2w register is set and the jump occur.
To fill the cache, some thing "watch" the result calculated where the
instruction is supposed to jump. In case of interrupt, this is lost to avoid
confusion and to stay stateless.
This instruction needed to be handle carrefully by the compiler. So what's up
in the area ?
nicO
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/