Re: Can you write code directly in CIL ???
- From: "Abubakar" <abubakarm@xxxxxxxxx>
- Date: Tue, 27 Dec 2005 14:54:45 +0500
> 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
.
- Follow-Ups:
- Re: Can you write code directly in CIL ???
- From: Willy Denoyette [MVP]
- Re: Can you write code directly in CIL ???
- From: Jon Skeet [C# MVP]
- Re: Can you write code directly in CIL ???
- References:
- Can you write code directly in CIL ???
- From: Peter Olcott
- Re: Can you write code directly in CIL ???
- From: Abubakar
- Re: Can you write code directly in CIL ???
- From: Jon Skeet [C# MVP]
- Can you write code directly in CIL ???
- Prev by Date: Re: overloading abstract type
- Next by Date: Re: Is this a compiler bug?
- Previous by thread: Re: Can you write code directly in CIL ???
- Next by thread: Re: Can you write code directly in CIL ???
- Index(es):
Relevant Pages
|
Loading