🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1256

Re: Makefiles -- .c and .h

#1256
From: Guy Harris
Date: Mon, 19 Nov 1990 19:57
13 lines
1022 bytes
>  How does the SunOs make figure out which files were included by each source
>file?  Does it do a "cc -E" on the source file, or something similar?

"Something similar".  Basically, it provokes the compiler into producing
a dependency list as it compiles.

>If so, isn't that (a) slow since it has to do it again each time the .c
>file changes,

Well, if the ".c" file changes, it has to compile it in any case.  There
is some extra overhead in getting the compiler (in particular, the "C
preprocessor" phase of the compiler) to produce the dependency list as
it compiles.
Technical Details
Message-ID: <4455@auspex.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy
References: <6268@minyos.xx.rmit.oz.au> <1990Nov16.171816.7173@ssd.kodak.com> <1990Nov18.204706.7044@athena.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy
From: guy@auspex.auspex.com (Guy Harris)
Newsgroups: comp.unix.programmer
Subject: Re: Makefiles -- .c and .h
Message-ID: <4455@auspex.auspex.com>
Date: 19 Nov 90 19:57:57 GMT
References: <6268@minyos.xx.rmit.oz.au> <1990Nov16.171816.7173@ssd.kodak.com> <1990Nov18.204706.7044@athena.mit.edu>
Organization: Auspex Systems, Santa Clara
Lines: 13