This SourceForge project allows functional programmers to compile functional programs that can be run on small hobbyist class machines. This compiler was initially developed by the Principles of Programming Group at Carnegie Mellon University by the folks who brought you the 2006 ICFP programming contest. Two new backend code generators for C and Forth allow the compiler to take on a new role for functional programmers wanting to target small machines. The compiler can only currently target 32-bit machines; however it has been used to compile several fairly large applications, including:
If you're interested in using the compiler, follow these instructions to obtain and compile it. Building the compiler is hopefully not terribly painful, but it does require that you have the MLton SML compiler installed, as well as Subversion and the GNU C Compiler (gcc).
It is easy to compile functional programs for small hobbyist class machines as long as the cross compilation tools are available.
The following steps can be used to compile the compiler.
The compiler has been built, and it is named "mlc.exe". Now, following a link below to see an example for various platforms.