Re: All .NET Languages are no longer equal.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ignacio Machin \( .NET/ C# MVP \) ("Ignacio)
Date: 12/13/04


Date: Mon, 13 Dec 2004 15:03:10 -0500

Hi,

 It may also be due that the C++ compiler should be more mature than those
of C# and VB.NET it has been around longer and had lots of optimizations for
a long time.

cheers,

-- 
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message 
news:MPG.1c260aae8b9fbc2c98baad@msnews.microsoft.com...
> Jeff Louie <jeff_louie@yahoo.com> wrote:
>> Imagine that. Up to now the party line was that the .NET languages
>> produced pretty much similar MSIL. With Visual Studio 2005, C++ is now
>> the most optimized. Ref. MSDN Magazine Jan 2005.
>
> No, that's been the case before now as well. The C++ compiler has
> always done much more optimisation than the C# and VB.NET compilers.
> Just how useful that is depends on the exact code - the JIT is where
> most of the really important optimisation is likely to occur, but
> occasionally the C++ compiler can do much better than the C# compiler.
>
> Usually when people talk about producing similar IL, they're talking
> about C# vs VB.NET.
>
> -- 
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too 


Relevant Pages

  • Re: RAD vs. performance
    ... abstractions that will be there, whereas my compiler can optimize them ... Usually this doesn't matter, though. ... I'd say the same thing about your premature optimisation ...
    (comp.lang.misc)
  • Re: simple increment operator question.
    ... The Real OS/2 Guy wrote: ... > compiler to make optimasions right. ... > optimisation ability will produce better code for ... If find it sadly ironic that someone so concerned with the readability ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Coldfire MCF5475 performance question
    ... I find it is normally much easier to see what is happening at the assembly level with basic optimisation enabled. ... But too little optimisation can also make it difficult, since the compiler puts data on the stack and uses unnecessarily long, slow code sequences. ... I've since set the 3 bits in this register to turn each of the caches on, and the empty loop now takes 106us, a factor of 14 improvement. ... The easiest way to check your clock rate is if you have a decent scope, look at the clock output pin. ...
    (comp.arch.embedded)
  • Re: Debug optimised code
    ... DWARF2) and compiler optimizations. ... accurate results for higher optimization levels? ... optimisation levels mean very much. ... you have to start debugging optimised code. ...
    (comp.compilers)
  • Re: simple increment operator question.
    ... compiler to make optimasions right. ... optimisation ability will produce better code for ... I've never seen assember code for more than 15 years - ... language right when you have to write code in that language. ...
    (alt.comp.lang.learn.c-cpp)