From owner-freebsd-hackers Thu Dec 10 21:48:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA18916 for freebsd-hackers-outgoing; Thu, 10 Dec 1998 21:48:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from detlev.UUCP (56-sweet.camalott.com [208.239.153.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18910 for ; Thu, 10 Dec 1998 21:48:47 -0800 (PST) (envelope-from joelh@gnu.org) Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id XAA35518; Thu, 10 Dec 1998 23:48:24 -0600 (CST) (envelope-from joelh) To: Alfred Perlstein Cc: rssh@grad.kiev.ua, hackers@FreeBSD.ORG Subject: Re: inclusion of system headers. References: From: Joel Ray Holveck Date: 10 Dec 1998 23:48:22 -0600 In-Reply-To: Alfred Perlstein's message of "Wed, 9 Dec 1998 12:33:49 -0500 (EST)" Message-ID: <8667bjgrfd.fsf@detlev.UUCP> Lines: 17 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> b) it slows compile time signifigantly >> it is 3 strings of empty cpp output on one header inclusion. >> Is it really slow compilation ? Where and when it was ? > uh, no. Usually the #ifndef is inside the included file, which means > opening the include files multiple times and parsing them just to abort. Many modern compilers (including gcc) will detect when an entire header file is #ifdef'd, and DTRT. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message