Re: Can you write code directly in CIL ???



> Don't misunderstand me - I'm not recommending hand-tweaking IL - I'm
> just saying that the C# compiler does *not* generate "perfect" IL.

I hope that the new C#(2.0) compiler is better at this.

Thanks.

Ab.

"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.1e1b1a9931b222e098cbdd@xxxxxxxxxxxxxxxxxxxxxxx
> Abubakar <abubakarm@xxxxxxxxx> wrote:
>
> <snip>
>
> > 2- C# compiler is as clever in generating msil as anyone can possibly
get. I
> > would recommend that start analysing the output of the C# compiler by
> > looking at the generated msil using ildasm (or your fav il disassembler)
and
> > really see if you could have written a better msil.
>
> This is entirely untrue. I believe the MC++ compiler generates better
> IL than the C# compiler, for a start. For a second thing, I remember a
> post a long time ago by someone who wanted to be able to embed IL in
> his C#. We asked him whether he was sure it would produce a performance
> improvement, and he produced his hand-tweaked IL and the IL generated
> by the C# compiler - and the hand-tweaked IL was about twice as fast.
>
> Don't misunderstand me - I'm not recommending hand-tweaking IL - I'm
> just saying that the C# compiler does *not* generate "perfect" IL.
>
> --
> Jon Skeet - <skeet@xxxxxxxxx>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too


.



Relevant Pages

  • Re: Something on CVF 6.6C
    ... > while Intel keeps saying that there is no market for MSIL. ... meant insufficient market for yet another Fortran compiler to generate MSIL, ... I don't believe those vendors ...
    (comp.lang.fortran)
  • Re: .Net applications, not optimized for CPU at all?
    ... Both Java VM and MSIL are logically stack machines. ... while the MSIL instructions aren't. ... This implies that all the usual compiler tricks can be applied. ...
    (borland.public.delphi.non-technical)
  • Re: /clr:pure and unmanaged lib
    ... VCRT linked in, take a look at the assembly manifest generated by the compiler, this manifest contains the assembly's depencies, something like. ... Pure is MSIL only, but the CRT includes an MSIL version of some functions, so the dependency still exists. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Is There Any Reason to Even Use VC++ Anymore?
    ... I never did any benchmarks, so I was basing my statement on other reports. ... Sure the C++ compiler can ... > spend some extra time to optimize MSIL, while the C# compiler is more time ... >>> You could almost think of the syntax extensions almost independent of ...
    (microsoft.public.dotnet.languages.vc)
  • re:Help !! Server.CreatePlaylist ERRORS !!!!
    ... In this case you have a compiler error, ... The new version comes without a public key, ... 2- Modify the MSIL code with Visual Studio or other editor. ... assembly extern interop_msxml ...
    (microsoft.public.windowsmedia.server)

Loading