What compiler do you use and why?
#1
Posted 13 June 2006 - 12:38 AM
#2
Posted 13 June 2006 - 02:09 AM
The main other C++ compiler (family) that you will run into sooner or later is gcc, aka mingw on Windows platforms. It's a command-line tool; there are IDEs available that wrap it, like DevC++ and Code::Blocks, though I haven't used the IDEs. If you wanted, you could use the Visual Studio IDE and compile with gcc, or use one of the free IDEs and compile with the Microsoft compiler. However you can't use the Visual Studio debugger with gcc; you'll have to use gdb or ddd for that (don't you just love all these TLAs?
Which set of software (Microsoft vs GNU) you decide to use is largely a matter of taste, past experience, finances, and political views; however, within my experience I'd point out the following differences between them:
* VS has a lot of "extensions" to C++ in its compiler that enable users to write not-quite-standards-compliant programs (for instance, the infamous for loop scope conformance issue, though newer versions of VS are better about this). On the other hand, gcc tends to be "fussier" (read: more adherent to the Standard) about these things, and often produces a variety of warnings that VS will not produce even on the highest warning level. Another thing gcc can be fussy about is templates.
* VS is generally better at optimization. As an anecdote, a raytracer I wrote once (heavy use of floating-point operations) rendered an image over 3 times faster when compiled with VS than when compiled with gcc, on the same machine.
#4
Posted 13 June 2006 - 02:46 AM
#5
Posted 13 June 2006 - 04:11 AM
#6
Posted 13 June 2006 - 07:03 AM
#7
Posted 13 June 2006 - 08:23 AM
#8
Posted 13 June 2006 - 09:30 AM
#9
Posted 13 June 2006 - 11:03 AM
#10
Posted 13 June 2006 - 12:25 PM
Reedbeta said:
I'll bite.
For my SSE raytracer, with both automatic scalar codegen & intrinsics paths, taking msvc8 as the baseline rendering is at least 25% faster with gcc (icc 9.1 is a couple of percent slower) on xp32; it's even worse for kd-tree construction which is more about memory/pointer manipulations than fp computations.
It's no surprise as msvc8 spits branches like there's no tomorrow, a no no for performance even on a k8.
And it didn't happen overnight, it has been that way for a couple of years (note that icc used to produce slightly faster 32bit code than gcc).
So, i'll dare to suggest you to revise your coding style.
Now there's no doubt msvc integrated visual debugger is unmatched - if a bit bloated -.
EDIT: note that it takes like 10 lines of perl to transmogrify gcc's warnings & errors into something that mscv IDE groks.
#11
Posted 13 June 2006 - 01:17 PM
Nick said:
Same here.
#12
Posted 13 June 2006 - 07:04 PM
Reedbeta said:
Visual Studio 2005 is a true gem of an IDE. I had a hard time swallowing the first .NET IDE, but it has evolved into an incredibly intuitive and powerful tool.
#13
Posted 13 June 2006 - 08:46 PM
#14
Posted 13 June 2006 - 09:35 PM
Jare said:
Although 've had some issues with the form designer; Visual Studio's UI has been blindingly fast compared to Eclipse. I've yet to come to terms with vim or emacs making it just about the only way to develop.
#15
Posted 13 June 2006 - 11:06 PM
I make Visual Studio pop up a GVIM app for files that Visual Studio doesn't handle so nicely however, which is quite handy. For instance, at work I use it to deal with UnrealScript code, which I get no real benefit out of using the VisualStudio IDE.
#16
Posted 14 June 2006 - 11:40 AM
Quote
Dito.
Cheers,
- Wernaeh
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












