Thread: What is the best compiler? And what's the difference?

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    62

    What is the best compiler? And what's the difference?

    I was wondering, what is the difference between Dev C++, Microsoft Visual C++, and others like code::blocks? Is it merely an interface difference? Is it a matter of functionality? Is it the same old C++ either way? Which do you guys think is the best, because right now I use Microsoft Visual C++ and I feel it is...a little too bulky; Do Dev and Code::blocks support Microsoft Platform SDK? I'm a little confused on what the difference between all of these programs are, and I don't have the disk space to try all of them, so some help with that would be greatly appreciated.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    what is the difference between Dev C++, Microsoft Visual C++, and others like code::blocks? Is it merely an interface difference? Is it a matter of functionality?
    All three are integrated development environments, so in that sense it is just an interface difference. However, the compiler behind Microsoft Visual C++ can be used with Code::Blocks, and both Dev-C++ and Code::Blocks use the same default compiler (the MinGW port of GCC).
    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

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    Quote Originally Posted by laserlight
    However, the compiler behind Microsoft Visual C++ can be used with Code::Blocks
    Um...What does that mean? That in order to use Code::Blocks(w/o the MinGW compiler) I still need to have Visual C++ Installed? Which compiler is better(or faster I guess I should say)? Can I take just the compiler from Visual C++ and get rid of everything else? What compiler does Visual C++ use?

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What compiler does Visual C++ use?
    MS Visual C++ 2005 uses version 8 of the MS compiler (MSVC8).

    What does that mean? That in order to use Code::Blocks(w/o the MinGW compiler) I still need to have Visual C++ Installed?
    Yes, though it need not be MSVC8, it could be say, the 2003 version (i.e. MSVC7.1, for which the free version does not come with a graphical user interface). Of course, you dont have to restrict your choices to MinGW and MSVC, you could also use the Digital Mars or Open Watcom compilers.

    Which compiler is better(or faster I guess I should say)?
    GCC tends to be slow in compiling compared to MSVC8. I am no assembly expert, and have not done or seen benchmark tests between the two compilers, so I cannot say which tends to produces faster code when set to fully optimise. Both compilers are reasonably standards compliant. The good part of using GCC is that, assuming you do not use platform specific libraries, your code is likely to be portable.

    Can I take just the compiler from Visual C++ and get rid of everything else?
    You should read the Code::Blocks documentation for more information.
    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

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    Wow...Thanks, I'm still a newb to all of this stuff(C++ that is) I started to learn it about a week and a half ago, but all the compiler and development environment terminology is basically gibberish to me; I will definitely look at the documentation for some more info; You have been a great help to me, and I offer you my deepest thanks; How long have you been using C++ out of curiousity?

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You have been a great help to me, and I offer you my deepest thanks
    You're welcome

    How long have you been using C++ out of curiousity?
    Just 4 years, a jiffy compared to some of the old fogeys around here.
    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

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    wow, 4 years is much longer than my 10 days...

Popular pages Recent additions subscribe to a feed