Browse thread
More registers in modern day CPUs
-
Tom
- skaller
- Richard Jones
- Chris King
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-09-06 (09:07) |
From: | Richard Jones <rich@a...> |
Subject: | Re: [Caml-list] More registers in modern day CPUs |
On Thu, Sep 06, 2007 at 08:20:06AM +0200, Tom wrote: > I was thinking about compiler implementation recently, and figured that it > is difficult to design the compiler for a variable number of hardware > registers - compared for designing a compiler witha fixed number of > registers. > > However, would it be possible to "emulate" cpu registers using software? By > keeping registers in the main memory, but accessing them often enough to > keep them in primary cache? That would be quite fast I believe... You might want to grab a good book on compilers and read about register allocation. Or take a look at this Wikipedia page: http://en.wikipedia.org/wiki/Register_allocation Rich. -- Richard Jones Red Hat