From: charette@ultoe.det.dec.com (Mark Charette)
Subject: Re: Internal c89 error
Date: 1995/10/12 [thread overview]
Message-ID: <45j0nj$2r3@pms507.pms.ford.com> (raw)
In-Reply-To: danpop.813461927@rscernix
Dan Pop (Dan.Pop@mail.cern.ch) wrote:
: I guess the primary reason for the c89 command is POSIX.2 compliance and
: not compatibility with older makefiles. Or isn't DEC OSF/1 claiming
: POSIX compliance any longer?
It's not explicitly stated. man standards mentions 1003.1, XPG4, AES,
FIPS 151-2, SVID 2 and SVID 3. man c89 gives no hint (it's the same page
as cc).
: And c89 is _by no means_ a front end to cc:
: ues5:~/FAQ 124> ls -l /usr/bin/cc /usr/bin/c89
: lrwxrwxrwx 1 root system 23 Jun 12 14:37 /usr/bin/c89 -> ../lib/cmplrs/cc/driver
: lrwxrwxrwx 1 root system 23 Jun 12 14:37 /usr/bin/cc -> ../lib/cmplrs/cc/driver
: ues5:~/FAQ 125> uname -a
: OSF1 ues5.cern.ch V3.2 17 alpha
pinanatubo> c89 -v foo.c
/usr/lib/cmplrs/cc/cfe -D__LANGUAGE_C__ -D__unix__ -D__osf__ -D__alpha -D_LONGLO
NG -D_CFE -D_SYSTYPE_BSD -I/usr/include3.11 -Xv -Xg0 -O1 -std1 -XS/tmp/ctmstaaar
Aa foo.c > /tmp/ctmfaaarAa
/usr/lib/cmplrs/cc/cfe: main 0.0u 0.0s 0:00 66% 0+2k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/ugen -v -G 8 -g0 -O1 /tmp/ctmfaaarAa -o /tmp/ctmcaaarAa -t /t
mp/ctmstaaarAa -temp /tmp/ctmgtaaarAa
ugen: main
0.0u 0.0s 0:00 50% 0+1k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/as1 -v -G 8 -p0 -g0 -O1 /tmp/ctmcaaarAa -o foo.o -t /tmp/ctms
taaarAa
as1: main
0.0u 0.0s 0:00 50% 0+3k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o foo.o -lc
0.0u 0.0s 0:00 60% 0+7k 0+0io 0pf+0w
pinatubo> cc -v foo.c
/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 -X
v -Xg0 -Xdollar -O1 -std0 -XS/tmp/ctmstaaasfa foo.c > /tmp/ctmfaaasfa
/usr/lib/cmplrs/cc/cfe: main 0.0u 0.0s 0:00 66% 0+2k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/ugen -v -G 8 -g0 -O1 /tmp/ctmfaaasfa -o /tmp/ctmcaaasfa -t /t
mp/ctmstaaasfa -temp /tmp/ctmgtaaasfa
ugen: main
0.0u 0.0s 0:00 33% 0+1k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/as1 -v -G 8 -p0 -g0 -O1 /tmp/ctmcaaasfa -o foo.o -t /tmp/ctms
taaasfa
as1: main
0.0u 0.0s 0:00 50% 0+2k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o foo.o -lc
0.0u 0.0s 0:00 80% 0+5k 0+0io 0pf+0w
pinatubo> cc -v -migrate foo.c
/usr/lib/cmplrs/cc/gemc_cc -D__LANGUAGE_C__ -D__unix__ -D__osf__ -D__alpha -D_SY
STYPE_BSD -D_LONGLONG -DLANGUAGE_C -Dunix -DSYSTYPE_BSD -I/usr/include3.11 -g1 -
O1 -common -o foo.o foo.c
0.0u 0.0s 0:00 90% 4+7k 0+0io 0pf+0w
/usr/lib/cmplrs/cc/ld -g0 -O1 -std0 -call_shared /usr/lib/cmplrs/cc/crt0.o foo.o
-lots -lc
0.0u 0.0s 0:00 83% 0+5k 0+0io 0pf+0w
It appears to me that c89 and cc are pretty much the same thing (both call cfe
via the driver). cc -migrate calls the gem C compiler.
--
Mark Charette charette@mika.com
MIKA Systems, Inc
17197 N. Laurel Park Dr Suite 115
Livonia, MI 48152
next prev parent reply other threads:[~1995-10-12 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-25 4:00 Internal c89 error Erik Green
1995-10-07 4:00 ` Mark Charette
1995-10-09 4:00 ` Dan Pop
1995-10-11 4:00 ` Mark Charette
1995-10-12 4:00 ` Dan Pop
1995-10-12 4:00 ` Mark Charette [this message]
1995-10-13 4:00 ` Dan Pop
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