This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Faster compilation speed
- From: Joe Wilson <developir at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 16 Aug 2002 05:08:09 -0700 (PDT)
- Subject: Re: Faster compilation speed
Mat Hounsell wrote:
>But why load and unload the compiler and the headers for every file in a
>module. It would be far more effecient to adapt the build process and start gcc
>for the module and then to tell it to compile each file that needs to be
>re-compiled. Add pre-compiled header support and it wouldn't even need to
>compile the headers once.
I was thinking the same thing, except without introducing new pragmas.
You could do the common (header) code precompiling only for modules listed
on the commandline without having to save state to a file-based code
respository. i.e.:
g++ -c [flags] module1.cpp module2.cpp module3.cpp
But compiling groups of modules at one time is contrary to the way most
makefiles work, so it might not be practical.
Perhaps GCC already economizes the evaluation of common code in such
"group" builds. Can anyone comment on whether it does or not?
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com