From: carlson@kikkin.zko.dec.com (Tom Carlson)
Subject: Re: Prob: /usr/lib/cmplrs/cc/cfe ...
Date: 1996/04/16 [thread overview]
Message-ID: <4l0c66$dvr@zk2nws.zko.dec.com> (raw)
In-Reply-To: 4jouon$k4@jungle.toppoint.de
In article <4jouon$k4@jungle.toppoint.de>, panther@jungle.toppoint.de (Hendrik S. Roepcke) writes:
|>Hello,
|>
|>very often during compling a software package, I get
|>problems with missing definitions or incompatible
|>calls.
|>
|>What is about this /usr/lib/cmplrs/cc/cfe ???
It's the resident C compiler on your system.
If you compile -v, you should notice some sequence such as the
following (reformatted):
> cc -v calc.c -o calc
/usr/lib/cmplrs/cc/cfe -DLANGUAGE_C -Dunix -D__LANGUAGE_C__
-D__unix__ -D__osf__ -D__alpha -D_LONGLONG -D_CFE -DSYSTYPE_BSD
-D_SYSTYPE_BSD -I/usr/include3.11 -Xv -Xg0 -Xdollar -O1 -std0
-XS/tmp/ctmstaayDta calc.c > /tmp/ctmfaayDta
/usr/lib/cmplrs/cc/ugen -v -G 8 -g0 -O1 /tmp/ctmfaayDta
-o /tmp/ctmcaayDta -t /tmp/ctmstaayDta -temp /tmp/ctmgtaayDta
/usr/lib/cmplrs/cc/as1 -v -G 8 -p0 -g0 -O1 /tmp/ctmcaayDta
-o calc.o -t /tmp/ctmstaayDta
/usr/lib/cmplrs/cc/ld -o calc -g0 -O1 -call_shared
/usr/lib/cmplrs/cc/crt0.o calc.o -lc
First, the "cc" driver invokes /usr/lib/cmplrs/cc/cfe on calc.c,
(the acc C front-end), and tells it to generate a temp file
consisting of internal compiler format into /tmp .
Then "cc" tells the ugen phase to process that temp file into
assembler format. Then "cc" tells the assembler (as1) to finally
generate a calc.o . Finally "cc" instructs the linker (ld) to
wrap everything up into executable image calc.
Exercise to the reader: check out the difference in behavior if
you also specify -migrate on your original "cc" commandline. This
has the effect of telling the driver to use DEC C, instead of acc.
DEC C is in the process of supplanting acc as the default compiler
on Digital Unix.
Tom
--
Thomas Carlson, DEC C/ DEC C++ carlson@decc.enet.dec.com
Digital Equipment Corporation, ZK2-3/N30
110 Spitbrook Rd,
Nashua, NH 03062
prev parent reply other threads:[~1996-04-16 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-01 5:00 Prob: /usr/lib/cmplrs/cc/cfe Hendrik S. Roepcke
1996-04-02 5:00 ` Sean Murphy
1996-04-16 4:00 ` Tom Carlson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox