hi,
Have anyone done any benchmarking test on apps compiled with different compilers like gcc,vc7,vc8,vc9. Which compiler gives the best exe?
Im on vc7...if others are better that this i would like to change to that...
thanx in advance...
Which compiler gives best output?
-
rogerborg
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Speed? Size? Floating point accuracy?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Define best. What is the input? Code size or code speed? What platform? What CPU architecture? What cache sizes? What optimization level? What optimization techniques? How much are you willing to pay?
Seriously, all of the mentioned compilers generate machine code from source code. They all do it well. If you write 'bad' source code, there isn't much that the compiler can do to make it 'better'. Until you have some actual working code, it will be difficult to tell which is 'better'.
In the grand scheme of things, it may not matter. If you can't debug your code (bad or no graphical debugger), or you can't understand why your code is wrong (bad diagnostic messages or no warnings), you aren't likely to be able to complete your project in a reasonable amount of time anyways. If you have code that doesn't compile or crashes, why would it be important for that code to be optimal?
In other words, you're putting the cart before the horse... Way before the horse. Get something working. When you're happy with that, if you still think it needs to be optimized, download each of the said compilers and try them.
Travis
Seriously, all of the mentioned compilers generate machine code from source code. They all do it well. If you write 'bad' source code, there isn't much that the compiler can do to make it 'better'. Until you have some actual working code, it will be difficult to tell which is 'better'.
In the grand scheme of things, it may not matter. If you can't debug your code (bad or no graphical debugger), or you can't understand why your code is wrong (bad diagnostic messages or no warnings), you aren't likely to be able to complete your project in a reasonable amount of time anyways. If you have code that doesn't compile or crashes, why would it be important for that code to be optimal?
In other words, you're putting the cart before the horse... Way before the horse. Get something working. When you're happy with that, if you still think it needs to be optimized, download each of the said compilers and try them.
Travis