PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

EVC3 vs VS2005: Perfomance.

I wonder, did anyone measured how nice microsoft compiler became in a manner of fast perfomance code generation? I mean, which one creates faster code?
I've been told MS greatly improved their compiler in VS, but are there actually figures of some kind?
jaguard wrote:I wonder, did anyone measured how nice microsoft compiler became in a manner of fast perfomance code generation? I mean, which one creates faster code?
I've been told MS greatly improved their compiler in VS, but are there actually figures of some kind?


Using C language Visual Studio 2005 or GCC, both generates much faster code than EVC 4. VS2005 vs GCC depends a lot of the type of code, vs2005 is really good unrolling loops for example, for some other task GCC may be better.

Regards
When you say "much", can you actually say how much, at least very very approximately?

It's very nice that they both generate great code, but is it more like 10%, 25% or 100%?

Maybe I will eventually find time to try it myself.. Some day.. well..
malloc function implementation in GCC is several times faster than in MS. I don't remember the correct numbers. Floating point in MS compilers is 2-3 times faster than in GCC.
If you have lots of floating point code - your choice is VS2005. In most cases you should also select VS2005, because it has a good IDE, debugger, etc.
I use GCC only when porting exising projects that use functions that are not implemented in VS2005 (like different getenv/gmtime/etc).
i can confirm that floating point intensive code is a lot faster with VS2005 than with eVC3 or eVC4. it is still though slower than with the Intel Compiler - but not that mich anymore... :D

again, i did not make any benchmarks. this is just what i noticed when i switched to VS2005.

Daniel
Also worth pointing out that it seems some bugs in the ARM compiler for EVC3 are fixed in VS2005.

Who else is seriously impressed with VS2005? I've been using it a lot recently to write C# for a few projects for work as well as some PPC programing when I have the time and am finding it is a truely fantasic IDE.
gamefreaks wrote:
Who else is seriously impressed with VS2005?


I was seriously impressed (negatively) with VS2003. Lots of operations which required single keystrokes on VC 6 were impossible or I was unable to find them.

I don't mean complex things but very simple ones which I often used, like hiding the compilation results (just ESC with VC6 from the main window, but I haven't been able to close it in VS2003), using F4 to browse thru the errors and instantly editing the (automatic in VC6, the focus is kept in the error window in VS2003 like if you'd like to edit the error log :P ) and things like this.

This forces me to use the mouse a lot (which is just stupid just to close a window or go through errors with F4) and productivity goes down.

Not to mention that actions were "keymapped" to other functions (it's like learning to use a new IDE from 0) and the "VC6" keymap was flawed as at least 1/3 operations original in VC6 were incorrectly mapped

If you add those issues to the fact my computer is slow and has little memory, I don't see a single reason to use VS2005 other than compiling final versions with optimization improvements. I think I'll stick for a LONG time with VC6 + visual assist.