Which compiler gives best output?

Discussion about everything. New games, 3d math, development tips...
Post Reply
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Which compiler gives best output?

Post by skumar »

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...
skumar
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

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
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

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
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

thanx for the replies....

what i was asking was the speed!!!!!!!!!!!!!1

I just asked this as an extra advantage after getting my code to work....

If the difference is negligible....i will ignore these thoughts....

and improve the hardware.... :D
skumar
Post Reply