[pooma-dev] Expanding Supported Explicit Instantiations

Mark Mitchell mark at codesourcery.com
Wed May 23 18:57:46 UTC 2001


>>>>> "Dave" == Dave Nystrom <wdn at lanl.gov> 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                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the pooma-dev mailing list