Sunday, 15 April 2012

Writing an x86 JIT compiler

The F#.NET Journal just published an article about metaprogramming:

"F# comes from the MetaLanguage or ML family of languages that were specifically designed for metaprogramming, a subject that includes writing interpreters, compilers and theorem provers as well as tools that manipulate programs such as refactoring plugins for Visual Studio. This article goes back to F#'s roots to create a tiny JIT compiler capable of transforming high-level expression-based functions down to raw x86 machine code for run-time execution. Remarkably, the resulting compiler is just 170 lines of F# code..."

To read this article and more, subscribe to The F#.NET Journal today!