Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   C compiler variants (http://www.velocityreviews.com/forums/t446327-c-compiler-variants.html)

DanielJohnson 02-20-2007 05:23 AM

C compiler variants
 
I am a newbie in C programming and I have already heard lot of C
compiler variants including ANSI, C9X, Borland etc. Could somebody
complete the list.

Which compiler is the most versatile and largely used ? I am using gcc
on Ubuntu as I don't have access to any other ones.

Can sombody throw light on how the journey of C has changed from K&R
times to now.

Thanks


Richard Heathfield 02-20-2007 07:23 AM

Re: C compiler variants
 
DanielJohnson said:

> I am a newbie in C programming and I have already heard lot of C
> compiler variants including ANSI, C9X, Borland etc. Could somebody
> complete the list.


ANSI and C9X aren't compilers, for a start.

ANSI is the American National Standards Institute, which standardised C
in 1989. For short, we call that C Standard "C89", but it's a standard,
not a compiler. ISO (the International Standards Organisation) adopted
that standard the following year, which is why we also refer to "C90".
"C9X" was the great upgrade-to-C project which finally resulted in a
modification to the Standard (the X was used because they didn't know
when they'd finish). This has become known as C99, since it was
eventually released in 1999. (There was a minor update in 1995 too,
which some people ignore and others know as C95.)

To list all the C compilers is a task beyond my ability to answer, but
the principal serious contenders are gcc in its many flavours,
Microsoft C, and Borland C. C/370 and perhaps LE370 for the mainframe
market, Norcroft for embedded systems. Dozens more, though.

All these compilers (as far as I know, anyway) conform to the ANSI C
Standard of 1989 - and *therefore* the ISO C Standard of 1990 (since
it's the same document, just with different section numbering because
ISO added a few lumps of boilerplate to the beginning).

None of them, as far as I know, conform to C99. There are one or two
conforming C99 compilers out there, but nobody I know actually uses
one. C99 conformance is not high on the implementation agenda, and is
unlikely to become so.


> Which compiler is the most versatile and largely used ? I am using gcc
> on Ubuntu as I don't have access to any other ones.


gcc is fine.

> Can sombody throw light on how the journey of C has changed from K&R
> times to now.


See above for a quick precis, or take a peek at
http://www.cs.bell-labs.com/who/dmr/ for some background on C.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


All times are GMT. The time now is 02:07 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57