Date: Thu, 30 Aug 2001 13:42:15 +1000 From: Gregory Bond <gnb@itga.com.au> To: Chris BeHanna <behanna@zbzoom.net> Cc: FreeBSD-Stable <stable@FreeBSD.ORG> Subject: Re: CPUTYPE and ports Message-ID: <200108300342.NAA07776@lightning.itga.com.au> In-Reply-To: Your message of Wed, 29 Aug 2001 22:04:18 -0400.
next in thread | raw e-mail | index | archive | help
> What I'd like to know is if anyone has figured out a way to do a > g++ equivalent to Microsoft's "precompiled headers". Not really needed for gcc. The preprocessor has special-case logic to recognise header files of the form /* optional comments */ #ifndef SYMBOL #define SYMBOL /* Stuff */ #endif (i.e. almost any normal C/C++ header) and not bother to even open the file next time it is referenced. This gives most of the speedup that precompiled headers would give. (The remaining bit is avoiding lexing the include file text, but that's not such a huge burden). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108300342.NAA07776>