🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2095

Re: Search for the Universal Header File

#2095
From: Phil Edwards
Date: Tue, 27 Feb 1996 04:20
41 lines
2089 bytes
[cc'd to poster]


With <4gqe8u$pn7@solutions.solon.com>,
it seems Pieter Hintjens (pahint@eunet.be) sez:

+ I am building the ultimate Universal Header File.  :-)
+ This is a tool to make cross-platform programming in C
+ easier.  Basically, all 'common' header files are put
+ in the uUHF, instead of in each program.  By 'common',
+ I mean: all ANSI C header files, plus file i/o, socket
+ i/o, and anything else that is useful.

[snip 350-line header]

I did something similar on a smaller scale.  Compilation of even
the small programs took forever.  I went back and commented out
the #include statements which I knew weren't being used.  The
speedup was *significant*, and I say that running Digital Unix on
a DEC Alpha 4000.

What I had been seeing -- but not reading -- for years finally
sank in after that experience:  more often than not, the most
expensive (timewise) step in compilation is processing of header
files.  What you have in mind may be great for those platforms
which support preprocessed header files, with the result of the
preprocessing being stored in some intermediate state in a local
directory with the rest of the source, but for typical platforms
which process the same file again and again -- sorry, but I'd
hate to use anything that massive.

Just my two timeslices.


Luck++;
Phil

-- 
#include<std/disclaimer.h>               The gods do not protect fools. Fools
finger pedwards@gamma.cs.wright.edu      are protected by more capable fools.
email pedwards@valhalla.cs.wright.edu                            -Larry Niven
Technical Details
Message-ID: <4gu0ql$eo8@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gqe8u$pn7@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: pedwards@valhalla.cs.wright.edu (Phil Edwards)
Newsgroups: comp.lang.c.moderated
Subject: Re: Search for the Universal Header File
Date: 26 Feb 1996 22:20:37 -0600
Organization: the top of Solsbury Hill.
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4gu0ql$eo8@solutions.solon.com>
References: <4gqe8u$pn7@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]