Thread: Compiler

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    54

    Compiler

    I was very new to C and programming in general. I was wondering what compiler i should download and where should i download it from?

    Thank you

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    There is an FAQ for that under the FAQ entry in the menu at the top (well, a bit down from the very TOP) of this page.

    The choice would be slightly dependant on what environment you have at your school - Linux/Unix or Windows, and what compiler your school is using.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    54
    well i know we are using windows at uni and we type cc CODENAME so the compiler must be cc or something im not sure.

    btw rob we are only learning C not C++. its an engineering course and this is the only programming unit that we are ever going to study so i just want to get it over and done with.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, cc is the standard Unix command for the "standard" C compiler. Quite often you'll find that this actually turns into a "gcc" for example through a symbolic link or a shell-script - but there are compilers called "cc" in some places - I think the Solaris compiler is called cc.

    In Windows, I haven't seen a compiler actually called cc - but it's quite possible to create such a thing by either using a batch-file, a executable that just calls the "proper name" using CreateProcess()/ShellExecute()/system()/execve() or simply renaming the original file-name.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    54
    sorry my mistake just found out that it is actually unix. probably gcc???

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    gcc is most likely the "most similar" compiler you can get for free, if you are using a Unix type system.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    GCC is also available under Windows. You can get a nice Integrated Development Environment that uses GCC by getting Dev-C++: http://bloodshed.net/devcpp.html
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM