home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!ffeine.Sun.COM!wsanders
- From: wsanders@ffeine.Sun.COM (Wiley Sanders)
- Newsgroups: comp.lang.c
- Subject: Re: Sun Spots recently sighted on Earth (was: Re: Simple C question)
- Date: 25 Aug 1992 16:57:22 GMT
- Organization: Tradeshow Tech Support
- Lines: 44
- Message-ID: <l9kpjiINNfof@jethro.Corp.Sun.COM>
- References: <1992Aug24.182200.29379@uwm.edu> <17bajiINNo68@early-bird.think.com> <tim.714749643@mal-s1>
- NNTP-Posting-Host: ffeine.corp.sun.com
-
- There are three Sun C compilers for use with SunOS 4.1.2 and below:
- 1) The cc that ships with SunOS, the "familiar" Sun C compiler based
- on the PCC / BSD / etc. compiler that has traditionally shipped with
- SunOS.
- 2) The unbundled cc compiler. Not ANSI conformant.
- 3) The unbundled acc compiler. ANSI conformant.
-
- 2 and 3 come together on the same CD, and are optimized for the Sun
- architecture.
-
- With Solaris 2.0, no cc is provided. When you buy the unbundled
- compiler, there is no longer a separate "cc" and "acc" but flags
- that switch the compiler between four modes:
- (These are quotes from the man page):
-
- a) ANSI ANSI C plus Sun C compatibility extensions, with
- semantic changes required by ANSI C. Where Sun C
- and ANSI C specify different semantics for the
- same construct, the compiler will issue warnings
- about the conflict and use the ANSI C interpreta-
- tion.
-
- b) conformance Maximally conformant ANSI C, without Sun C compa-
- tibility extensions. The compiler will reject
- programs that use non-ANSI C constructs.
-
- c) Sun C The compiled language includes all features compa-
- tible with (pre-ANSI) Sun C. The compiler warns
- about all language constructs that have differing
- behavior between Sun ANSI C and the old Sun C.
-
- d) transition ANSI C plus Sun C compatibility extensions,
- without semantic changes required by ANSI C.
- Where Sun C and ANSI C specify different semantics
- for the same construct, the compiler will issue
- warnings about the conflict and use the Sun C
- interpretation. This is the default mode.
-
- Hope this clears up any confusion.
- Disclaimer: I am possessed by the Evil Demon Urrgh and all statements
- in this article should be attributed to him and not to me.
- --
- "What a waste it is to lose one's mind, or not to
- have a mind as being wasteful. How true that is." -Dan Quayle
-