From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bf93e1b60754310b,start X-Google-Attributes: gidfee84,public From: James CE Johnson Subject: CXX, templates & performance Date: 1997/08/03 Message-ID: <33E52E32.70339253@chiroptera.tragus.org>#1/1 X-Deja-AN: 262161814 Organization: Automated Design Systems Newsgroups: comp.unix.osf.osf1 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