Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!nerds-end From: "BartC" Newsgroups: comp.compilers Subject: Re: Language Design for a tiny processor Date: Mon, 8 Aug 2011 22:54:59 +0100 Organization: A noiseless patient Spider Lines: 22 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <11-08-011@comp.compilers> References: <11-07-027@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: gal.iecc.com 1312840984 15284 64.57.183.58 (8 Aug 2011 22:03:04 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 8 Aug 2011 22:03:04 +0000 (UTC) Keywords: design, architecture Posted-Date: 08 Aug 2011 18:03:04 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:228 "Billy Mays" <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> > 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. Is this a commercially available processor with a part-number, or something you are also creating (or perhaps exists only in an emulator)? Having a look at the instruction set (with only ten instructions, you could just list them...) it might make it easier to offer advice on what sort of language might be viable and whether it would make programming much easier. -- Bartc