John Lam 1997 — 2026

Mono status

While randomly surfing the web, I came across an interesting site called DayPop. It’s a search engine that scans the “living web” on a daily basis. It’s purpose is to index web sites that change on a daily (or more frequent) basis. This includes web logs such as mine (I really do try to add new stuff every day) as well as more traditional “news” sites. When I did a search for CLR, the top result to come up was Miguel de Icaza’s status report on the Mono project, an open-source implementation of the CLR.

Here’s a list of some of the interesting things that I learned in that article:

  • Mono’s GC is based on Intel’s open source Open Runtime Platform’s GC.

  • Mono’s JIT uses bottom-up rewrite system (BURS) to select the native instructions used. A BURS grammar is fed as input to the parser (in addition to the CIL instructions), and reduce / reduce conflicts are used to calculate the cost of various grammar productions that result in the generation of x86 instructions.

  • Mono’s JIT operates in three passes: the first pass labels all nodes in the tree and finds the cheapest tree, the second pass does enregistration, and the final pass generates x86 code.

  • They have an implementation of P/Invoke up and running already. It would be useful to study their implementation and contrast it with Microsoft’s

I also believe that since that article was published in Dr. Dobb’s, that Mono’s C# compiler is now self-compiling.