Related articles |
---|
the long way to the development of a compiler stf@apl.it (Stefano Lanzavecchia) (2001-06-28) |
Re: the long way to the development of a compiler lockner@chaos.cns.uni.edu (Matthew J.Lockner) (2001-07-01) |
Re: the long way to the development of a compiler neelk@alum.mit.edu (2001-07-02) |
Re: the long way to the development of a compiler dlindauer@notifier-is.net (david lindauer) (2001-07-02) |
Re: the long way to the development of a compiler walter@nospamm-digitalmars.com (walter) (2001-07-02) |
Re: the long way to the development of a compiler stf@apl.it (Stefano Lanzavecchia) (2001-07-02) |
Re: the long way to the development of a compiler christian.bau@isltd.insignia.com (Christian Bau) (2001-07-02) |
Re: the long way to the development of a compiler aleksey+@cs.cmu.edu (Aleksey Kliger) (2001-07-03) |
Re: the long way to the development of a compiler neelk@alum.mit.edu (2001-07-03) |
[3 later articles] |
From: | neelk@alum.mit.edu (Neelakantan Krishnaswami) |
Newsgroups: | comp.compilers |
Date: | 2 Jul 2001 00:31:59 -0400 |
Organization: | Compilers Central |
References: | 01-06-071 |
Keywords: | code |
Posted-Date: | 02 Jul 2001 00:31:59 EDT |
On 28 Jun 2001 23:48:29 -0400, Stefano Lanzavecchia <stf@apl.it> wrote:
>
> It was easy to write a toy compiler targeting a simple stack machine
> and implement an interpreter for the stack machine, but when I
> started thinking about real CPUs (in particular x86 and its special
> purpose registers and its asymmetric instruction set, but also the
> 6502 with its 3 registers or MIPS or Alpha) I discovered that I
> hadn't learned enough from the mentioned books.
Since you mentioned that you had used functional languages, I'll
suggest Andrew Appel's book _Modern Compiler Construction in ML_.
The book has an actual implementation (with exercises) for a simple
compiler that targets RISC architectures, and all that ought to cover
exactly what you want. The actual source code is also online somewhere.
Neel
Return to the
comp.compilers page.
Search the
comp.compilers archives again.