🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42678

Re: POSIX

#42678
From: Joe Buck
Date: Wed, 08 Nov 1995 00:00
29 lines
1857 bytes
gwashing@ace.gsfc.nasa.gov (Gerald G. Washington) writes:
>Hi.  I have a couple of questions for the GCC experts.  Is GCC
>POSIX compliant?

GCC is a compiler.  Most of POSIX compliance has to do with the behavior
of the library, which the OS vendor supplies.  If you replace the vendor's
compiler with gcc you'll still be using the same C library, so errors in
POSIX compliance should be reported to your OS supplier.

Had your question been "is gcc compliant with the ANSI/ISO C standard",
the answer is yes (except that again, some of the standard specifies the
behavior of library functions, which your system vendor is responsible
for).  The flags "-ansi -pedantic" should be given for strictest standards
conformance (turn off gcc extensions, turn on nitpicky diagnostics).

>Secondly, are there any disadvantages to using GCC over the
>system manufacturer's compiler?  I like using GCC since I can
>use the same compiler on multiple platforms; I need to know
>if I'm sacrificing stability or something.

On many platforms, gcc is superior to the vendor's compiler.  On some
platforms (NeXT and some Data General systems, as well as free systems
like Linux and the various BSD systems), gcc is the vendor's compiler.
The C part of gcc is very stable.

-- 
-- Joe Buck 	<jbuck@synopsys.com>	(not speaking for Synopsys, Inc)
Anagrams for "information superhighway":	Enormous hairy pig with fan
						A rough whimper of insanity
Technical Details
Message-ID: <47qpu0$ch3@hermes.synopsys.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <47lb4n$gqf@post.gsfc.nasa.gov>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a6a546902bd56502
X-Google-Attributes: gid11318c,public
From: jbuck@synopsys.com (Joe Buck)
Subject: Re: POSIX
Date: 1995/11/08
Message-ID: <47qpu0$ch3@hermes.synopsys.com>
X-Deja-AN: 118940582
references: <47lb4n$gqf@post.gsfc.nasa.gov>
organization: Synopsys Inc., Mountain View, CA 94043-4033
newsgroups: gnu.gcc.help