Re: gcc precompiled headers
"David Wilson" <[email protected]> Mon, 14 Aug 2006 10:57:45 -0400
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
A couple years ago, I tried and tried to get PCH to work with C++ and never figured it out. That was pre gcc-4, though. Things may have improved now. But really, ROM doesn't take long at all to compile on modern hardware and I don't think using pch would result in any significant gains. -David On 8/14/06, Michael Barton <[email protected]> wrote: > Is anyone using pre-compiled headers with GCC? It seems like this > would be nice to apply to merc.h. I tried doing this in my Makefile: > > rom: merc.h.gch $(O_FILES) > $(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS) > > merc.h.gch: merc.h > $(CC) $(C_FLAGS) merc.h > > merc.h.gch is created, and it compiles fine, but there doesn't seem to > be any measurable increase in compilation speed (i.e. using time(1)). > Makes me think it is probably silently failing to use the pre-compiled > version. > > --Palrich. > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom