Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!nerds-end From: Roberto Waltman Newsgroups: comp.compilers Subject: Re: Language Design Date: Mon, 18 Jul 2011 18:10:56 -0400 Organization: Compilers Central Lines: 24 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <11-07-029@comp.compilers> References: <11-07-027@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: gal.iecc.com 1311054404 59112 64.57.183.58 (19 Jul 2011 05:46:44 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Tue, 19 Jul 2011 05:46:44 +0000 (UTC) Keywords: design Posted-Date: 19 Jul 2011 01:46:44 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: x330-a1.tempe.blueboxinc.net comp.compilers:205 Billy Mays wrote: >I am trying to design a programming language for a simple processor >(16 bit, ~10 instructions, 16 registers). 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. > >Any advice for a newbie? Start were newbies like you (and me) should. These books describe simple compilers that could be ported to a new processor in a reasonably short time. [ Sorry, they are "C or other commonly used languages" ] "Brinch Hansen on Pascal Compilers" - P.B.Hansen "Compiler Construction" - N. Wirth The 2nd is available on-line, as well as the "Small-C" compiler. -- Roberto Waltman