caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* MinCaml: an educational compiler for tiny ML subset (documented in Japanese)
@ 2005-03-03 22:26 Eijiro Sumii
  2005-03-05  8:32 ` [Caml-list] " Jon Harrop
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Eijiro Sumii @ 2005-03-03 22:26 UTC (permalink / raw)
  To: caml-list; +Cc: sumii

Hi,

I have implemented a simple but efficient compiler from a tiny ML
subset to the SPARC assembly language.

  http://min-caml.sourceforge.net/min-caml.tar.gz

The primary purpose is advanced education: the compiler is well
documented (only in Japanese for now, unfortunately)

  http://min-caml.sourceforge.net/

and has been used in a class at Tokyo for years.

The compiler consists of only 2000 lines of OCaml.  Yet, it produces
as efficient SPARC code as OCaml and GCC does (for the tiny ML subset
and equivalent C programs).

  A typical functional program (Ackermann):

    GCC 6.8s
    OCaml 0.9s
    MinCaml 0.9s

  A typical imperative program (raytracing):

    GCC 14.7s
    OCaml 36.7s (could perhaps be improved by using BigArray)
    MinCaml 17.0s

So, please take a look if you are interested.  Even if you don't
understand Japanese, you may be able to understand OCaml!:-)

Best,

--
Eijiro Sumii (http://www.cis.upenn.edu/~sumii/)
Department of Computer and Information Science, University of Pennsylvania


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-03-15 20:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 22:26 MinCaml: an educational compiler for tiny ML subset (documented in Japanese) Eijiro Sumii
2005-03-05  8:32 ` [Caml-list] " Jon Harrop
2005-03-05 14:37   ` Eijiro Sumii
2005-03-05 14:48     ` Eijiro Sumii
2005-03-07  0:20     ` Jon Harrop
2005-03-08  3:01       ` MinCaml English Documentation Eijiro Sumii
2005-03-08  4:12         ` Jon Harrop
2005-03-08  7:09         ` [Caml-list] " Ken Friis Larsen
2005-03-08 18:59         ` David MENTRE
2005-03-08 19:15           ` Eijiro Sumii
2005-03-08 20:13         ` Xavier Leroy
2005-03-08 22:32           ` Eijiro Sumii
2005-03-14 17:31             ` Looking for an efficient implementation of simply typed lambda calculus Sébastien Hinderer
2005-03-15 20:59               ` [Caml-list] " Manos Renieris
2005-03-05  9:46 ` [Caml-list] MinCaml: an educational compiler for tiny ML subset (documented in Japanese) Corey O'Connor
2005-03-05 12:01 ` Oliver Bandel
2005-03-05 16:45   ` Eijiro Sumii
2005-03-05 17:19 ` OT: " Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).