Like Tree3Likes

ANSI C compiler download

This is a discussion on ANSI C compiler download within the C Programming forums, part of the General Programming Boards category; I was just wondering if someone can give me a link where i can download ANSI C compilers,or maybe someone ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    14

    ANSI C compiler download

    I was just wondering if someone can give me a link where i can download ANSI C compilers,or maybe someone can tell me specificly which one,for the books named "The C programming language" by Brian W.Kernighan and Dennis M.Ritchie?
    arunvijay likes this.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    131

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    It's actually ISO standard (the standards were developed by ANSI, and later ratified by ISO). Being an ISO standard carries more weight in some parts of the world than being an ANSI standard.

    Depending on age of your edition of the book by Kernighan and Ritchie (those guys have been around for a while) it may be older than any of the C standards. The ISO C standards date from 1990 (or 1989 for the ANSI equivalent) and 1999, and the age of the book will give you an indication of what standard - if any - it is concerned with.

    If you want a compiler for windows, look at Pelles C or at mingw. If you want a compiler for a range of systems (including windows and unix variants) look for the Gnu compiler collection (mingw is a port of gcc for windows). There are others around.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  4. #4
    Registered User
    Join Date
    Jul 2011
    Posts
    14
    its a second edition.Any suggestions for the compiler i should get for that one?
    Last edited by Filster; 07-28-2011 at 06:20 AM.

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    Then it predates both C standards (being from 1988), but probably covers some features from the 1990 ISO standard (as Kernighan and Ritchie were in the loop when that standard was written).

    You would be better off updating your book and getting a modern compiler. Several features of K&R C were either eliminated from the C standard, or deprecated (flagged as obsolete, and scheduled for removal from the standard).
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  6. #6
    Registered User
    Join Date
    Jul 2011
    Posts
    14
    So what compiler should i download then,or was it a waste that i got that book?

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    Gnu compilers will probably support pre-standard, K&R versions of C. But you will need to look up command line options to get that to work (it won't be enabled by default). I don't know if Pelles C supports K&R C (never had a reason to look).

    If you buy a book about a programming language that is over 20 years old, you can expect some aspects to be outdated. Even with books by K&R that are actually pretty good.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  8. #8
    Registered User
    Join Date
    Jul 2011
    Posts
    14
    Too be honest,im just a begginer ,just wanted too know what compiler should i download,i realy dont know anything about options or anything..
    So i should download a GNU?

  9. #9
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    As I said, you would be better off with a reasonable quality modern compiler, and accept that the compiler may reject some code from an old text book. Pelles C or gnu (mingw if you are using windows) will be fine.

    If you go through the list linked to by fronty, there will be alternatives. There are no absolutes in terms of the one and only one compiler you should use though. No matter what compiler you pick, there will be a learning curve - compilers are tools that require expertise to use properly, so they take a while to learn.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  10. #10
    Registered User
    Join Date
    Jul 2011
    Posts
    14
    Sorry too bother grumpy ,but can you type a link for those compilers download,btw i am using windows.

  11. #11
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    I gave links in my first post in this thread.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  12. #12
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    A great deal of the code and examples given in K&R's book, second edition, is still OK, today. It's a great book, keep it.

    Yes, there have been changes - there always are, but they don't generally have a big impact on people learning C. The changes that do impact you, you just adapt to, and it's no big deal imo.

    I recommend either Pelles C, or Microsoft Visual Express. Both are free, and offer a good product. Pelles C isn't as well known, but both offer easy access to people who really know the compiler and C. That's important, because you will have specific questions about the user interface, as well as C.

    I have no experience with GNU's compilers.

  13. #13
    Registered User
    Join Date
    Jul 2007
    Posts
    131
    Quote Originally Posted by grumpy View Post
    Then it predates both C standards (being from 1988), but probably covers some features from the 1990 ISO standard (as Kernighan and Ritchie were in the loop when that standard was written).
    The language which K&R 2nd edition covers is "close enough" to C89 (== C90), nothing major happened after publishing of that book (during C89 development).

  14. #14
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Quote Originally Posted by Filster View Post
    Sorry too bother grumpy ,but can you type a link for those compilers download,btw i am using windows.
    Have a look here

    Free C / C++ Compilers and Interpreters (thefreecountry.com)

  15. #15
    Registered User
    Join Date
    Jun 2005
    Posts
    6,656
    Quote Originally Posted by fronty View Post
    The language which K&R 2nd edition covers is "close enough" to C89 (== C90), nothing major happened after publishing of that book (during C89 development).
    The reason I was cautious is the time it takes time to write and publish a book (even a second or later edition). It is not uncommon for technical books to be a number of years out of date by the time they are published.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FILE reading in ANSI compiler
    By dmalwcc89 in forum C Programming
    Replies: 5
    Last Post: 03-10-2008, 07:34 PM
  2. Where can i download the borland 3.1 compiler?
    By lox in forum C Programming
    Replies: 5
    Last Post: 07-11-2005, 05:04 AM
  3. Turning off ANSI in compiler
    By hern in forum C Programming
    Replies: 3
    Last Post: 02-25-2004, 10:10 AM
  4. Windows C compiler download?
    By sw9830 in forum C Programming
    Replies: 4
    Last Post: 03-02-2003, 04:15 AM
  5. C++ compiler download
    By incognito in forum C++ Programming
    Replies: 5
    Last Post: 10-27-2001, 09:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21