Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
More registers in modern day CPUs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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:


Richard Jones
Red Hat