Trying to find the best compiler

Discussion about everything. New games, 3d math, development tips...
Post Reply
Alpha Omega
Posts: 288
Joined: Wed Oct 29, 2008 12:07 pm

Trying to find the best compiler

Post by Alpha Omega »

Hi everyone, I decided to learn C++ before trying to do any extensive projects on irrlicht so I got 'C++ Primer Plus' by Stephen Prata version 5 and he keeps talking about dumb compilers versus smart compilers. So my question is what compilers are the best? I am using Mingw at the moment and have no complaints because it gets the job down and its free but are there alternatives that are worth paying for? I tried to use Visual Studios but i didnt like the layout and it was hard to find things on the GUI but thats just me.
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Re: Trying to find the best compiler

Post by twilight17 »

MinGW and Microsoft's Visual C++ compiler are the top two. Stick with either of those and you'll be fine.
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
wITTus
Posts: 167
Joined: Tue Jun 24, 2008 7:41 pm
Location: Germany

Post by wITTus »

I already used some version of Borland (don't remember which one exactly), VS6.0, VS7.0 .NET, VS2005, WATCOM, GCC and MINGW. And IMHO, GCC is the best compiler in the world. :) For the IDE/Editor I'm not too sure yet - this depends also on personal likes. I used Dev-Cpp, then VIM and now C::B, but only because Dev-Cpp got extremely buggy and as it is still being developed I hope for a new official release. (they cannot keep on 'releasing' SVN versions for years, can they? :roll: ) I really like the Visual Studio Intellisense, but the compiler sucks and I develop on Linux anyway. So I suggest you simply use the compiler/IDE you like. There is no 'best' compiler/IDE. It really depends on your needs. The only thing I wouldn't recommend anymore is Dev-Cpp :(.
Generated Documentation for BlindSide's irrNetLite.
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

If you are develloping on windows for windows then nothing will compare to the Microsoft Visual Studio. Get nice add-ons like Visual Assist to improve it further and you are set. A properly configured project built by MSVC will beat both in speeds and size other compilers most of the time. I think the compiler of Intel was one of the few to make a good challenge there, but MSVC is, if nothing else, one you should learn to love and learn to use for the industry itself.

--edited to replace IBM by Intel :roll:
Last edited by Dorth on Thu Apr 09, 2009 7:22 pm, edited 1 time in total.
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

I would say get two or three compilers (i suggest Visual C++ Express and Code::Blocks) and see for yourself. Although I do only comile for Windows I use Code::Blocks with gcc (MinGW). Best combination imho.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

If you can afford it, the Intel compiler can offer very good performance. Also some people swear by GCC, you may want to try some of those experimental builds of G++ 4 for windows.

That being said I am a chronic MSVC user, can't beat the convenience.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

see how civilized irrlicht users are? no flame war on such a delicate issue...amazing
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I'm with BlidSide, Intel has probably the best compiler I've ever used. If you need free compilers, use either gcc on Linux or Visual compiler under Windows. mingw is only second choice, unless you need to cross-compile.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

A question about the intel compiler:
What about the speed of the program when it runs on an AMD cpu for example. How will the speed compare to let's say MSVC?
I can image that the intel compiler will produce very fast programs for intel cpus, but for AMD?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
wITTus
Posts: 167
Joined: Tue Jun 24, 2008 7:41 pm
Location: Germany

Post by wITTus »

It will check the cpuid and create a special flowchart with random NOPs for AMD processors.
Generated Documentation for BlindSide's irrNetLite.
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Haha ^^
No seriously. I could image that these guys knows there cpus best so there are some optimizations for intel cpus ?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Alpha Omega
Posts: 288
Joined: Wed Oct 29, 2008 12:07 pm

Post by Alpha Omega »

So is there a way to download just the windows compiler and use it on C::B? Everytime I try to find just the compiler it brings me to the windows page for the Visual Studios 2008++ that is the whole IDE package. I didnt really want to get the ide since it costs money and i didnt like it much.
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Sorry, I said IBM, but meant Intel ;)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The Intel code on AMDs is still competitive with other compilers and often superior.
Cloudef
Posts: 123
Joined: Wed Dec 03, 2008 9:02 pm
Location: Finland

Post by Cloudef »

I've used intels compiler on linux and have to say its really good, i would use it if you are not going comericall. (The linux had free for non comericall if i remember right).

For normal usage i use Code::Blocks and GCC =)
Post Reply