Trying to find the best compiler
-
- Posts: 288
- Joined: Wed Oct 29, 2008 12:07 pm
Trying to find the best compiler
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.
-
- Posts: 362
- Joined: Sun Dec 16, 2007 9:25 pm
Re: Trying to find the best compiler
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!
http://img147.imageshack.us/img147/1261 ... wernq4.png
http://img147.imageshack.us/img147/1261 ... wernq4.png
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? ) 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
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
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
--edited to replace IBM by Intel
Last edited by Dorth on Thu Apr 09, 2009 7:22 pm, edited 1 time in total.
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
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
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.
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
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
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?
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.
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
"When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
-
- Posts: 288
- Joined: Wed Oct 29, 2008 12:07 pm