Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: James CE Johnson <jcej@chiroptera.tragus.org>
Subject: CXX, templates & performance
Date: 1997/08/03	[thread overview]
Message-ID: <33E52E32.70339253@chiroptera.tragus.org> (raw)


I'm hoping somebody out there can give me a hand with this or at least
point me to a place that can...

CXX creates a repository of files based on C++ templates used by the
source code.  At the link stage, these repository files get compiled to
object stage and ultimately into the library/application being built.

To pump up the performance of our compiles (typically 2+ hours!), we use
GNU-make with the `-j' option which tells it to compile multiple source
files to object in parallel. This gives us a 10-20% decrease in compile
times but when we get to the link phase we go back to a non-parallel
approach because of the linker.  The time spent by the linker compiling
the repository files can take as long as the original source compile
itself.

My question is this:  Does anybody know what the linker goes through to
compile those repository files?  I've used `-v' on `ld' and figured out
the command lines but it seems that there's some parsing going on which
causes new repository files to be created.

My goal is to figure out how to "manually" build the repository files so
that I can stop the compile at the object stage, generate a Makefile in
the repository & compile those in parallel then kick back to the linker
for the final compile.

If we can get another 10-20% off of the compile times, it might get
tolerable!

Thanks for any help or advice you might have,
James



             reply	other threads:[~1997-08-03  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-03  4:00 James CE Johnson [this message]
1997-08-08  4:00 ` CXX, templates & performance Phil Edwards
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox