Thread: Basic C compiler

  1. #1
    Registered User
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    2

    Question Basic C compiler

    Hi everyone =] Well, today I've decided that I want to learn C. I know it's not easy but given the right amount of time and tutorials, I believe that I can learn basic-intermediate levels of C programming. I have basic-intermediate knowledge in Visual Basic, Java and HTML.

    So as this is my first time, I was wondering what is a good but simple C compiler. Any recommendations is greatly appreciated.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, it depends on what you mean by "good and simple". I would highly recommend using a fully standards compliant, modern compiler - because using old stuff will teach you bad habits that doesn't work in a modern compiler.

    Visual Studio 2008 Express Edition is available for free from Microsoft, and is a good compiler.

    gcc (Gnu Compiler Collection) is another option. You can use gcc as a command-line tool, or you can get for example Code::Blocks to go with it, which gives you a full Integrated Development Environment. gcc is available for many differnet processors and OS's, whilst MS Visual Studio 2008 only works in Windows XP or Vista (and the respective Server version).

    --
    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
    Registered User
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    2
    Alright, I'll try Visual Studio.

  4. #4
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Me too, I think VS is a great compiler and IDE. I really like it. But I think, it's a little overbloated for beginners. If you can't get it, I would suggest you Code::Blocks or Dev-C++
    (Well, I really don't like Dev-C++, because it has a strange type of indentation and it didn't work well). They're easier to use, but also really comfortable. And codeblocks can handle multiple compilers. They are simpler, but not as full-featured as MSVC.

  5. #5
    Ex scientia vera
    Join Date
    Sep 2007
    Posts
    477
    Quote Originally Posted by Brafil View Post
    Me too, I think VS is a great compiler and IDE. I really like it. But I think, it's a little overbloated for beginners. If you can't get it, I would suggest you Code::Blocks or Dev-C++
    (Well, I really don't like Dev-C++, because it has a strange type of indentation and it didn't work well). They're easier to use, but also really comfortable. And codeblocks can handle multiple compilers. They are simpler, but not as full-featured as MSVC.
    I used to agree. I found it extremely difficult to actually start using Visual Studio after getting used to Dev-C++ and/or Code::Blocks. However, those two IDEs are, in my opinion, complete crap in comparison to Visual Studio. Don't get me wrong, they are fine on their own, but compared to the epic awesomeness of the wonder that is visual studio, they are but pure fail.

    I highly recommend you start using Visual Studio and stick with it until you get the hang of it. It is the defacto IDE for professional development for windows platforms, and it simply doesn't get better IMO.
    "What's up, Doc?"
    "'Up' is a relative concept. It has no intrinsic value."

  6. #6
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    with the effective demise of Borland C++ MSVC is the only game in town when it comes to quality IDEs and compilers for the Microsoft platform.

    Things like Code::Blocks and Dev-C are worthy efforts by hobbyists, but can't (hope to) match the features and useability of the commercial offerings.

    IntelliJ and Eclipse with C++ plugins are better options if you want something that's not Microsoft yet still have a quality editor.
    IntelliJ is of course not free and almost unheard of outside of the Java community as it's designed to be a Java IDE but offers editors for other languages as well to provide cross-language development capabilities inside a single application similar (to a degree, I've not tested whether it is possible to plug in a C++ compiler and debugger) to Visual Studio but without the restrictions to a single integrated compiler.
    Eclipse is similar in its goals.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Not to mention Visual Studio has a debugger integrated, which is very helpful, since you will want to get familiar with it from the start. I do take it you have used a debugger in at least VB before, so it should not be too much of a problem.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Quote Originally Posted by Brafil View Post
    Me too, I think VS is a great compiler and IDE. I really like it. But I think, it's a little overbloated for beginners. If you can't get it, I would suggest you Code::Blocks or Dev-C++
    (Well, I really don't like Dev-C++, because it has a strange type of indentation and it didn't work well). They're easier to use, but also really comfortable. And codeblocks can handle multiple compilers. They are simpler, but not as full-featured as MSVC.
    I believe the confusing part is that you learn at schools to use a command line compiler. Like open a file with a simple editor and type a line to compile. Then you expect to open VS and expect to see a text file in front of you and next to it a console. But you get all these options about projects and stuff. And a punch of files that seem useless. But with like 20m and a quick tutorial you can use the basics of VS.

    And as always, I would prefer if you get familiar with serious IDE from school. I mean you can get VS 2008 proffesional edition for free as a student, but you would be taught with text and command prompt. Maybe VI on Linux. Which are all also good, but they require less familiarization (omg, no redline, this was actually a valid word!) from VS. So you could do it by your own. Anyway, kind of off-topic...

  9. #9
    Registered User
    Join Date
    Feb 2009
    Posts
    278
    Given the fact that he has programmed in Visual Basic, learning to use the Visual C++ IDE will be a snap.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    And given that the last post was in at the end of 2008, you are grave digging and most don't like that.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Feb 2009
    Posts
    278
    Oops... I forgot to look at the date! Someone linked me to this thread from one of mine!

    Sorry guys!

  12. #12
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by Elysia View Post
    And given that the last post was in at the end of 2008, you are grave digging and most don't like that.
    I prefer the term Topic Necromancy
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  13. #13
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Right, and you do not need to drag the ghoul around further.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. visual basic vs C or C++
    By FOOTOO in forum Windows Programming
    Replies: 5
    Last Post: 02-06-2005, 08:41 PM
  2. Basic compiler error
    By sammacs in forum C++ Programming
    Replies: 6
    Last Post: 01-16-2005, 01:03 PM
  3. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 05:44 PM
  4. Special Compiler for win app's
    By Unregistered in forum Windows Programming
    Replies: 19
    Last Post: 04-26-2002, 03:52 PM

Tags for this Thread