From owner-freebsd-stable Wed Aug 29 20:42:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by hub.freebsd.org (Postfix) with ESMTP id 4DD6C37B405 for ; Wed, 29 Aug 2001 20:42:19 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id NAA72599; Thu, 30 Aug 2001 13:42:16 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from itga.com.au (lightning.itga.com.au [192.168.71.20]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id NAA07776; Thu, 30 Aug 2001 13:42:16 +1000 (EST) Message-Id: <200108300342.NAA07776@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: Chris BeHanna Cc: FreeBSD-Stable Subject: Re: CPUTYPE and ports In-reply-to: Your message of Wed, 29 Aug 2001 22:04:18 -0400. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Aug 2001 13:42:15 +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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