Article View: net.lang.c++
Article #18Re: Make and C++
From: mherman
Date: Thu, 20 Feb 1986 14:48
Date: Thu, 20 Feb 1986 14:48
39 lines
2150 bytes
2150 bytes
[posted by mail]
> >From lvc@cbsck.UUCP (Larry Cipriani) Fri Feb 14 20:13:30 1986
>
> How do you tell make to use the C++ translator instead
> of the C compiler if both C and C++ programs end in
> the same suffix (.c). I wouldn't want to run my
> C programs through the C++ translator unless it produced
> identical results.
At Waterloo, we renamed CC to ccc and used .cc for C++ source and left
.c for standard C. Don't think of C++ and C as the "same" language.
One the first frustations a 4.BSD C++ programmer is going to
experience is the lack of header files for the functions libraries you
use on your system. The easiest way to automatically generate these is
a fairly simple modification to pass 1 of lint which passes the *names*
of structs/unions/enums to pass 2. To get an idea of what you need to
do, turn on the debugging feature in pass 2. You should end up saying
"That's almost exactly what I need to make external function declarations
for C++".
Second, we ran into problems with the 4.2BSD C compiler with expression
stack overflows (I'm not real sure it was the expression stack any
more). Anyway, one of our trusty Unix people modified cc to dynamically
relocate the stack when the overflow occurred.
BTW, note that I'm now at Omnibus Computer Graphics in T.O. ...and no,
we aren't using C++ here (yet).
Michael Herman
Graphics Programmer, Research and Development
Omnibus Computer Graphics Inc.
TransAmerica Tower, 2180 Yonge Street
Toronto, Ontario, Canada M4S 2B9
UUCP: {allegra,decvax,ihnp4,utcsri}!watmath!omnitor!mherman
ARPA: mherman@omnitor.ARPA@csnet-relay.ARPA
Technical Details
Message-ID:
<347@watcgl.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!watnot!watcgl!omnitor!mhermanShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!watnot!watcgl!omnitor!mherman From: mherman@omnitor.UUCP Newsgroups: net.lang.c++ Subject: Re: Make and C++ Message-ID: <347@watcgl.UUCP> Date: Thu, 20-Feb-86 09:48:53 EST Article-I.D.: watcgl.347 Posted: Thu Feb 20 09:48:53 1986 Date-Received: Fri, 21-Feb-86 05:13:39 EST Sender: daemon@watcgl.UUCP Organization: U of Waterloo, Ontario Lines: 39