Re: [SharpOS Developers] Small AOT optimization

2008-02-25 Thread Cédric Rousseau
There's a Optimizations() method in Method class but it is commented so I didn't look at all at what it does. Btw, I think I don't have today enough knowledge in the AOT process to propose such compiler optimization. I'll get deeper into the code, and maybe I'll emerge to submit you another patch

Re: [SharpOS Developers] Small AOT optimization

2008-02-25 Thread Darx Kies
Stanisław Pitucha wrote: > On Mon, Feb 25, 2008 at 4:31 PM, Cédric Rousseau <[EMAIL PROTECTED]> wrote: > >> The first one is directly in the IL code generated by the C# compiler. I >> don't know why but the compiler sometime produce a pattern like this: >> IL_0005: br.s IL_0007 >> IL_0007: ...

Re: [SharpOS Developers] Small AOT optimization

2008-02-25 Thread Stanisław Pitucha
On Mon, Feb 25, 2008 at 4:31 PM, Cédric Rousseau <[EMAIL PROTECTED]> wrote: > The first one is directly in the IL code generated by the C# compiler. I > don't know why but the compiler sometime produce a pattern like this: > IL_0005: br.s IL_0007 > IL_0007: ... > This code is obviously translated

[SharpOS Developers] Small AOT optimization

2008-02-25 Thread Cédric Rousseau
Hi all, when working on debugger integration, i took a look to the generated assembly. I found that there is a lot of jmp instruction ("jmp $+5") that do nothing else but jumping to the very next instruction. Considering a jmp instruction takes about 7 clocks ticks, it can be a noticeable waste of