Re: Compilers in ML or Caml

torbenm@app-7.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Wed, 20 Jun 2007 09:36:33 +0200

          From comp.compilers

Related articles
Compilers in ML or Caml sgillespie@bisonofborg.com (bison) (2007-06-19)
Re: Compilers in ML or Caml blume@hanabi.local (Matthias Blume) (2007-06-19)
Re: Compilers in ML or Caml ang.usenet@gmail.com (Aaron Gray) (2007-06-19)
Re: Compilers in ML or Caml torbenm@app-7.diku.dk (2007-06-20)
Re: Compilers in ML or Caml Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) (2007-06-21)
Re: Compilers in ML or Caml jon@ffconsultancy.com (Jon Harrop) (2007-06-21)
| List of all articles for this month |

From: torbenm@app-7.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Newsgroups: comp.compilers
Date: Wed, 20 Jun 2007 09:36:33 +0200
Organization: Department of Computer Science, University of Copenhagen
References: 07-06-037
Keywords: functional

bison <sgillespie@bisonofborg.com> writes:


> I'm sure there are plenty of compilers written in ML, but I'd like to
> find some smaller (ish) compilers written in ML for a good examples in
> compiler writing in ML.


I have been teaching compilers using SML for several years, and I
provide a small compiler for the students to extend.


The compiler compiles from a small language into a small subset of a
MIPS-like assembly language, which we run on a simulator.


You can find last years assignment, including in
http://www.diku.dk/undervisning/2006-2007/2006-2007_b2_ovs/Six.zip


A solution to the assignment (and an assignment for extra extensions)
can be found in
http://www.diku.dk/undervisning/2006-2007/2006-2007_b2_ovs/K.zip


I'm afraid the documentation is in Danish, but the code uses names in
English.


You can download the MIPS-like simulator from
http://www.diku.dk/undervisning/2004v/dat-ark/software/howto.html#mips-extensions
(the Mips-extensions files).


The compilers course use my own book, which you can download from
http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/index.html


Note that while the book describes using an intermediate language, the
exercise compiler compiles directly to MIPS-like assembly language (to
keep the project small).


Torben


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.