Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C++ Compiler Pros & Cons

  1. Jun 16, 2008 #1

    I need to write some numerical integration and do Fast Fourier transforms in c++. I am running MS OS on Intel Duo core processors. Earlier post suggested downloading libraries such as MLK. Since I am running on Intel, I have found Intel's MLK library. I will need other libraries along the way. However, before that I need to choose a C++ compiler to download.

    What are you suggestions? E.g., Intel C++ Compiler vs. MS Visual Studio 2005 vs. MS Visual Studio 2008 etc.

    Because our problem may not be solved easily in MATLAB. We're moving into C++. Thank you!
  2. jcsd
  3. Jun 16, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    VS2008 compiler (version 9) has much better standard compliance than previous MS compilers. GCC always had very good optimisation because it's output format allowed link-level function optimisation. Intel's compiler should have an advantage.

    What is probably mor elikely to have a bigger effect is the libraries - especially if they are optomisedfor a particular processor. Intel used to ship different versions of it's image libs which autodetected your processor.

    You will have to do some testing to find out which is best for your app. With pipelines, cache effects and the number of possible optimisations in modern compilers you really have to test - even with different optimise flags on the same compiler.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Compiler Pros Cons Date
Creating a simple text parser/compiler Jun 28, 2017
C/++/# Trying to compile a source code in C Feb 14, 2017
Fortran77 data compiler problem Jan 19, 2017
Help in telling compiler to include header files for C Oct 27, 2016