[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [pooma-dev] Expanding Supported Explicit Instantiations
From: |
Mark Mitchell |
Subject: |
RE: [pooma-dev] Expanding Supported Explicit Instantiations |
Date: |
Wed, 23 May 2001 11:57:46 -0700 |
>>>>> "Dave" == Dave Nystrom <address@hidden> writes:
Dave> I'm also curious whether Jim Crotinger's idea of making 'sv'
Dave> private in the hope that the compiler could optimize it away
Dave> was worth considering.
Probably not. Compilers generally pay little heed to `private'. In
order to do the optimization, you would to prove that there is no way
for the address of the static variable to escape the class, which
requires looking at the bodies of all of the functions in the class.
--
Mark Mitchell address@hidden
CodeSourcery, LLC http://www.codesourcery.com