Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-08-10 08:50:02

----- Original Message -----
From: <k.hagan_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, August 10, 2001 4:54 AM
Subject: [boost] Re: boost.threads

> "Greg Colvin" <greg_at_[hidden]> wrote...
> >
> > It seems a compiler for a "fast local stack" machine can simply
> > note which local variables have their address used and not keep
> > them on the fast stack. Doesn't seem all that different from
> > using registers for locals on a machine with register windows.
> The big difference is that registers are likely to be restricted
> to the built-in types, and those are the types for which the
> compiler can see "taking their address" most easily.

We should be careful about making this generalization. The increasing
importance of abstraction and inlining in C++ means that compilers are
getting smarter. More and more of them are able to keep objects or parts of
objects in registers.


Boost list run by bdawes at, gregod at, cpdaniel at, john at