[LC++]can't seem to use reference

Carlo Wood carlo at alinoe.com
Thu Feb 21 12:01:03 UTC 2002


On Thu, Feb 21, 2002 at 10:03:28AM +1030, Mark Phillips wrote:
> I realize you need at least two registers.  But one could hold lsPr
> and nextLs (equivalent) and the other could hold ls.  The point is
> that nextLs is only constructed late, and throughout the remainder
> of the scope, lsPr and nextLs refer to the same thing.  But can
> the compiler work this out?

Yes.  I see what you mean, you got me confused :/
Because now you increment lsPr, the compiler won't use
the same register anymore.  It should work.

-- 
Carlo Wood <carlo at alinoe.com>



More information about the tuxCPProgramming mailing list