From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: zalman@netcom.com (Zalman Stern) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/10 Message-ID: #1/1 X-Deja-AN: 279314913 Sender: zalman@netcom7.netcom.com References: <612k6f$i79@news-rocq.inria.fr> <619nmn$4jv$1@goanna.cs.rmit.edu.au> <34392537.AA4A9F96@tonys.ecology.umn.edu> <61c9kl$94l$1@goanna.cs.rmit.edu.au> <343AAA16.41C6@lanl.gov> <343D64F1.167E@lanl.gov> <1997Oct10.170030.1@eisner> Followup-To: comp.sys.intel,comp.arch,comp.sys.dec Organization: Netcom On-Line Services Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Larry Kilgallen (kilgallen@eisner.decus.org) wrote: : As I understand it, the reliance on preprocessors is actually : required by the definition of the C language and it is impossible : to implement a C compiler which uses precompiled interface definitions : because one is supposed to be able to add definitions before those : which are "include"ed and have those added definitions affect the : "include"ed ones. Many compiler vendors offer solutions to this problem. (Metrowerks CodeWarrior and Microsofts Visual C++ to name two.) There are varying levels of "transparency" involved. As with many things (alias analyisis, building fast x86 implementations) the solution is difficult, but far from impossible. A related problem that often comes up in porting large apps is the semantics of textual inclusion make the "interface dependencies" of C programs relatively difficult to determine. And the situation gets worse in development environments where precompiled header information is passed in on the command line because the C source code then often lacks any mention of the headers it depends on. Then there's the "mother include file" syndrome where every source file starts with an include of a single header which includes every header than might ever be used in the program. But salvation is close at hand. I understand Merced will have a "compile C program" instruction. Its only fair given the CDC STAR "compile Fortran program" instruction. (Or was it TI ASC? SYMBOL? One of those :-)) -Z-