Pre-Compiled headers and GCC
#1
After madmaxoft enabled precompiled headers in the Windows builds, compile time was reduced a lot. I'm trying to do the same for *nix users by enabling precompiled headers.

However, it seems using precompiled headers actually slows down compile time O.o

How I understood the precompiled headers with GCC is that you compile a .h file the same way you compile a .cpp file and it will create a .h.gch file, place that file in the same folder as the .h file and GCC will use the .h.gch file instead of the .h file.

I checked it if works with the -H GCC parameter, and it works, but it seems to take longer to compile the project even if it's slightly slower. There's definitely no improvement though.

Am I doing something wrong?
Reply
Thanks given by:


Messages In This Thread
Pre-Compiled headers and GCC - by FakeTruth - 02-04-2012, 01:31 AM
RE: Pre-Compiled headers and GCC - by xoft - 02-04-2012, 01:45 AM
RE: Pre-Compiled headers and GCC - by FakeTruth - 02-04-2012, 02:04 AM
RE: Pre-Compiled headers and GCC - by xoft - 02-06-2012, 05:38 PM
RE: Pre-Compiled headers and GCC - by FakeTruth - 02-06-2012, 09:28 PM
RE: Pre-Compiled headers and GCC - by AlterEgo - 03-29-2012, 11:02 PM
RE: Pre-Compiled headers and GCC - by xoft - 03-29-2012, 11:41 PM
RE: Pre-Compiled headers and GCC - by AlterEgo - 03-30-2012, 08:46 AM



Users browsing this thread: 4 Guest(s)