Does gcc/g++ support precompiled headers? If not, which compilers for Linux do?
From what I know, pre-compiled headers are useful for compiling large projects faster. And it has no negative effect on the binary sizes? The downside being the rigid header structure that has to be maintained. Is that correct?the usefullness of them is questionable also
So the answer is no, gcc/g++ does not have pre-compiled header support as of now, and definently not in gcc 2.x. Right?There is some work being done to add precompiled headers to GCC 3.x, but I don't know when it will become part of the official tree.
It's mostly correct. The one big downside is that with implementations like Microsoft's (eg. include "stdafx.h") you loose track of your dependencies. You just "include it all" and hope what you need is in there. Develop a large project like that for a few years, and then try to pull a module out of it... you'll be in hell. Most implementations end up having a similar problem because you need to have a fixed set of includes for the precompiled header idea to be useful.From what I know, pre-compiled headers are useful for compiling large projects faster. And it has no negative effect on the binary sizes? The downside being the rigid header structure that has to be maintained. Is that correct?
Hmmmm, I thought it was a rule we were supposed to let compiles run overnight!!!