[Mono-list] esoteric programming

Miguel de Icaza miguel@ximian.com
27 May 2002 23:20:34 -0400


Hello Lawrence!

> I kind of lost myself again in useless time wasting activities, but the
> result is sort of interesting I guess to those working on the Mono JIT
> compiler. See the bottom part of
> http://wwww.bluesorcerer.net/esoteric/bf.html. The generated IL code is very
> simple, so I would've expected that mono would equal or beat ms.net. ;-)

Oh, so you are the man behind bf!

Did you compile the sources with the Mono/MCS pair when comparing
against MS?  Currently MCS does not do two big groups of optimizations:
loop inversion in for loops (trivial) and it uses more opcodes than
necessary for tests/branches than it should (there is a bug report filed
against this).

Are the results the same when running the same compiled code (with CSC)
in Mono vs MS.NET?  Also, are the times taken at function entry/leave or
not?  Because there might be a penalty in Mono currently, as we lack
`ahead-of-time' compilation.  

Miguel.