[Mono-dev] CIL to CIL optimizer

Robert Jordan robertj at gmx.net
Mon Aug 14 13:41:57 EDT 2006

Felipe Almeida Lessa wrote:
>> A CIL-to-CIL optimizer could probably do constant folding very easily or
>> simplify some of the bad code generated by mcs for things like:
> [snip]
> Shouldn't it be the case of optimizing mcs and not creating another
> tool? If it's too difficult to fix mcs (I suspect so), wouldn't it be
> better to have an option that optimized the CIL after mcs generated
> the code but before it was saved on the hard disk?

CLI compilers are (almost) never optimizing. That's the job
of the JIT in the .NET/Mono world.


More information about the Mono-devel-list mailing list