From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,20b0441ac4e100f3 X-Google-Attributes: gidfee84,public From: carlson@kikkin.zko.dec.com (Tom Carlson) Subject: Re: Prob: /usr/lib/cmplrs/cc/cfe ... Date: 1996/04/16 Message-ID: <4l0c66$dvr@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 148102125 distribution: world references: <4jouon$k4@jungle.toppoint.de> organization: Digital Equipment Corporation reply-to: carlson@kikkin.zko.dec.com (Tom Carlson) newsgroups: comp.unix.osf.osf1 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