[pooma-dev] [PATCH] Kill pre-instantiation
Richard Guenther
rguenth at tat.physik.uni-tuebingen.de
Mon Mar 17 10:03:11 UTC 2003
On Sat, 15 Mar 2003, James Crotinger wrote:
> I don't know what the state-of-the-art is for template instantiations on the
> various platforms where POOMA is now used, but if memory serves, KCC and SGI
> CC were greatly helped by pre-instantiating this stuff. This is a pain for
> POOMA developers (i.e. they suffered longer rebuild times), but for POOMA
> users it made a big difference in how long it took to "link" their codes
> (which include all the pre-link cycles, which are particularly painful with
> optimization enabled). So I certainly wouldn't nuke this capability. Perhaps
> allowing the configuration to turn it off or limit it to lower
> dimensionality would be useful.
At least for gcc you do not prevent gcc from emitting duplicates of
preinstantiated objects this way - they just get deleted at link time.
For other compilers I know only the way IRIX CC does, which requires
more installation effort to make it work (didnt check if the current
install installs everything required). And I doubt preinstantiation will
work with a shared library in the current setup at all (didnt check, too).
The way I'd prefer doing preinstantiation is in the users application -
just build an extra .o file with just preinstantiations, those which you
actually need. I can cook something into README/INSTALL if you like.
Richard.
--
Richard Guenther <richard.guenther at uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
More information about the pooma-dev
mailing list