home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: sef@kithrup.COM (Sean Eric Fagan)
-
- In article <1991Dec1.194449.23329@uunet.uu.net> brnstnd@KRAMDEN.ACF.NYU.EDU (Dan Bernstein) writes:
- >POSIX seems to have decided that portable applications *need* cc (or
- >c89, whatever) to compile ANSI C. Why?
-
- I can think of situations in which an application would need to be able to
- rely on the behaviour of 'cc.' What kind of code it accepts, what options
- it takes, things like that.
-
- The first situation is an application that generates a program, for some
- reason, and needs to compile it. Perhaps you've taken a look at emacs,
- perl, or rn sources? By guaranteeing *what* the compiler will accept (e.g.,
- ANSI-C), the needs for ifdef's (supposedly) goes away.
-
- Another situation is for something like Larry Wall's Configure, or a package
- distributed with sources and a Makefile. The goal of POSIX is that this
- makefile will be portable among all compliant systems, as well as the code.
-
- Lastly, please note that .2 did *not* 'standardise' "cc"; they standardized
- "c89," a compromise *I* think is ok.
-
- --
- Sean Eric Fagan
- sef@kithrup.COM
-
- Volume-Number: Volume 26, Number 29
-
-