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 (06:20)
From: Tom <tom.primozic@g...>
Subject: More registers in modern day CPUs
(This question may not be OCaml specific, but I guess it is not specific at
all, and there are quite some people here that have implemented compilers,
so I post it here...)

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

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...

 - Tom