Results 1 to 14 of 14

Thread: Best C++ linux compiler

  1. #1
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Best C++ linux compiler

    from this thread http://villavu.com/forum/showthread.php?t=45860 i want to see idf there is a better C++ linux compiler then g++
    what is the best c++ linux compiler?

    ~shut

    EDIT: problem solved
    but now i have a new problem
    http://pastebin.com/m3ea0a02e
    inside the function it says the array is 4 bytes in size which is wrong
    and out side the function it says the array is 48 bytes in size which is correct
    what i want to know is where has it gone wrong and why is it only saying it is 4 bytes big instead of 48 bytes?
    because im sure i have put the array into the function correctly
    Last edited by Shuttleu; 05-30-2009 at 04:06 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    It's generally just best to stick to g++.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  4. #4
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Ever tried the intel compilers?

    I'm pretty sure you can get the linux ones for free.
    Interested in C# and Electrical Engineering? This might interest you.

  5. #5
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    just do what i do and link code:blocks to g++ so you have a nice ide to work in similar to... well any mainsteam compiler and ide. its it really the compiler your worried about, or is it the ide? i mean your not tryng to make processor or hardware dependant calls are you?? :-p

    current running that setup on a fedora 10 and an ubuntu 8.04, works great

  6. #6
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    so what do you think is wrong then in the other thread?

    ~shut
    Judging from the time of this post, I think you have found your problem.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  7. #7
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    My friend, I used to ask my questions here also.
    try the egghead forums or something this is just not the right place you get some feedback but on other forums you get more feedback.
    ~Hermen

  9. #9
    Join Date
    Jan 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    intel is fastest

  10. #10
    Join Date
    Sep 2009
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Necro(mancy|philia)?

  11. #11
    Join Date
    Dec 2007
    Location
    Somewhere in Idaho
    Posts
    480
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First off, compiler reviews are sprace, and for a good reason, different compilers will create code that is fast on one system, but slow on another. Not only that, the same code in two compilers will have different speeds. In some cases, gcc will be the fastest, in other, the microsoft compiler will be faster. It all depends on multiple factors.

    With that in mind. Generally, for an intel system, the intel compiler is viewed as producing the best code with all optimizations turned on. However, the distance between the icc and the gcc is pretty minimal. with the latest gcc 4.4, there is almost no difference in the speed of code produced by either the icc or gcc (with the right flags turned on).

    What compiler you use is really your last concern, your first should be what algorithm you are using. The best compiler in the world can't change the fact that a bubble sort sucks.

    The difference between the top three compilers, gcc, Microsoft's compiler, and the icc is slim to none, and it depends heavily on the code being compiled. (icc isn't always the fastest)

  12. #12
    Join Date
    Sep 2009
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And if you plan to ship the program with source code, you pretty much have to let people use gcc when building the program without any modifications in build system if you don't want to get lots of complaints and patches about it.

  13. #13
    Join Date
    Dec 2007
    Location
    Somewhere in Idaho
    Posts
    480
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by fronty View Post
    And if you plan to ship the program with source code, you pretty much have to let people use gcc when building the program without any modifications in build system if you don't want to get lots of complaints and patches about it.
    If you use a standard autoconfig build system, this really isn't an issue. Intel's ICC and the GCC perform very similarly as far as syntax and even setting options goes. There are many people that have been able to successfully build their entire systems using the ICC.

    If you are using just a simple make file build system, then I would agree that using that it would be wise to use the GCC as the standard compiler.

  14. #14
    Join Date
    Sep 2009
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And of course if you use just basic flags they are same on most compilers.

    autoconf is painful to use. :s And it's GNU's.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •