[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: crutch installation
- To: <michael>, <roland>, <xtech>
- Subject: Re: crutch installation
- From: Roger Gregory <roger>
- Date: Sat, 17 Feb 90 17:12:06 PST
Absolutely not. I disagree with this approach completely . see end for reasons.
From michael Sat Feb 17 04:33:35 1990
Received: by xanadu (4.1/SMI-4.0.2) id AA09932; Sat, 17 Feb 90 04:33:27 PST
Date: Sat, 17 Feb 90 04:33:27 PST
From: michael (Michael McClary)
Message-Id: <9002171233.AA09932@xanadu >
To: roland@xxxxxxxxxxx, xtech@xxxxxxxxxxx
Subject: Re: crutch installation
> From roland@xxxxxxxxxxx Thu Feb 15 22:14:09 1990
> I can see two ways to do it: 1) make a CCC analogous to CC that runs the
> preprocessor output for each file through the crutch then invokes CC
> with the appropriate substitutions. Advantage: it treats the crutch
> as a fix to cfront, which, conceptually, is what it is. Disadvantage:
> you have the overhead of an extra pass even where you know you won't
> need it. 2) do it like stubble: the makefiles involved recognize
> some characteristic of the file name. BIG Disadvantage: it further
> complicates an already messy naming scheme. As a kludgy solution, I
> suggest a #define HALE to be included at the beginning of source files
> that don't need the crutch.
2) is the way to do it. You rename the file of any program that needs
the crutch, and the makefile ruleset automatically recognizes that
you must make the cxx file from the crutch-input file. Thus only those
files that need crutch get crutched.
(.cmm for c--? B-) )
> BTW when I run cpp on a file, then the crutch, then CC, it works
> but I get "undefined function" warnings. Is there some magic I might
> be missing about sandwiching something between preprocessor and
Let me see an example next time we're both in.
1) requires me to what crutch does, and what the compiler doesn't do.
this is such a can of worms that I'ld gladly pay a factor of 2 to not
have to know the current state of disrepair of ATT's product. Also it is eaisy to
overlook a construct that needs the crutch.
2) the file name space doesn't need the additional confusion.