From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Andrew Cruickshank Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/11 Message-ID: <343F7D9A.C475526E@openkast.demon.co.uk>#1/1 X-Deja-AN: 279582722 X-NNTP-Posting-Host: openkast.demon.co.uk [194.222.66.51] 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> X-Priority: 3 (Normal) Organization: OpenKast Reply-To: andrew@openkast.demon.co.uk Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Larry Kilgallen wrote: > > In article <343D64F1.167E@lanl.gov>, William Clodius writes: > > Fortran currently also lacks a standard defined preprocessor. This may, > > or may not, be viewed as a problem for Fortran. The received wisdom on > > preprocessors is that they can help performance and portability, but > > their effect on code maintenance and legibility may not be worth the > > price. > > As for performance I have only seen the C preprocessor to hinder > compilation speeds (presumably run-time performance is not the > issue since some combination of libraries and inlining can make > code from sophisticated compilation equal to that from any sort > of preprocessing). > > But as for compilation speed, taking a full set of VMS interface > definitions ("Starlet") and using them from C slows down the > compilation _considerably_ compared to compilers like Bliss, > Pascal and Ada which make use of precompiled libraries. DEC > releases a new version of VMS only once a year or so, why should > I recompile the interface definitions every time I compile ? > > 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. > > Larry Kilgallen On PCs pre-compiled header files have been a standard feature for some time (driven primarily by the requirement to include Windows header file when Windows 3.0 took off). The compilers keep a database of precompiled header information for each source file in a project. If you change the include files or add definitions ahead of the include files then this is detected and the precompiled header information is regenerated by the compiler/preprocessor. So it's not impossible and it is workable. ------------------------- Andrew Cruickshank.