Re: Language Design

Oleg Sesov <osesov@gmail.com>
Sat, 23 Jul 2011 14:58:26 -0700 (PDT)

          From comp.compilers

Related articles
Language Design 81282ed9a88799d21e77957df2d84bd6514d9af6@myhashism (Billy Mays) (2011-07-18)
Re: Language Design usenet@rwaltman.com (Roberto Waltman) (2011-07-18)
Re: Language Design sinu.nayak2001@gmail.com (Srinivas Nayak) (2011-07-18)
Re: Language Design anton@mips.complang.tuwien.ac.at (2011-07-19)
Re: Language Design zwinkau@kit.edu (Andreas Zwinkau) (2011-07-20)
Re: Language Design acolvin@efunct.com (mac) (2011-07-23)
Re: Language Design christophe.de.dinechin@gmail.com (Christophe de Dinechin) (2011-07-23)
Re: Language Design osesov@gmail.com (Oleg Sesov) (2011-07-23)
Re: Language Design gene.ressler@gmail.com (Gene) (2011-07-26)
Re: Language Design thomas.mertes@gmx.at (tm) (2011-07-27)
Re: Language Design usenet@rwaltman.com (Roberto Waltman) (2011-07-28)
Re: Language Design s_dubrovich@yahoo.com (s_dubrovich@yahoo.com) (2011-08-04)
Re: Language Design torbenm@diku.dk (2011-08-08)
Language design David.Chase@Eng.Sun.COM (1991-09-04)
| List of all articles for this month |
From: Oleg Sesov <osesov@gmail.com>
Newsgroups: comp.compilers
Date: Sat, 23 Jul 2011 14:58:26 -0700 (PDT)
Organization: Compilers Central
References: 11-07-027
Keywords: design
Posted-Date: 24 Jul 2011 18:10:16 EDT

On 19 P8QP;, 03:16, Billy Mays
<81282ed9a88799d21e77957df2d84bd6514d9...@myhashismyemail.com> wrote:
> I am trying to design a programming language for a simple processor
> (16 bit, ~10 instructions, 16 registers). B I am not sure what a
> language actually needs in order to be more useful than pure assembly,
> but is also reasonable to implement.
>
> I had originally tried to make a RPN style language where the language
> is purely stack based, but I realized it wouldn't be Turing complete.
> I'd rather not just re implement C or other commonly used languages,
> but I'm having a hard time coming up with something I'd actually want
> to use.


10 instructions CPU is not very capable, however many compiler
construction books contain examples of tiny language compilers
targeting similar environment, so they might be used to start with. To
name a few:


http://ssw.jku.at/Coco/
Coco/R parser generator and book (older editions available on the web)
contains pretty simple Taste compiler.


http://www.cs.sjsu.edu/~louden/cmptext/
Compiler Construction by Kenneth C. Louden. Rather old, but still
might be interesting.


http://foja.dcs.fmph.uniba.sk/kompilatory/docs/compiler.pdf
Compiler Construction using Flex and Bison by Anthony A. Aaby.


and others.


Post a followup to this message

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