freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pooma-dev] [PATCH] Kill pre-instantiation


From: Richard Guenther
Subject: RE: [pooma-dev] [PATCH] Kill pre-instantiation
Date: Mon, 17 Mar 2003 11:03:11 +0100 (CET)

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 <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]