Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: Luke A. Guest Newsgroups: comp.compilers Subject: Re: 8-bit processor specific techniques for Ada Date: Sun, 27 Sep 2015 23:04:00 +0100 Organization: Aioe.org NNTP Server Lines: 18 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <15-09-021@comp.compilers> References: <15-09-019@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: miucha.iecc.com 1443399277 15004 2001:470:1f07:1126:0:676f:7373:6970 (28 Sep 2015 00:14:37 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 28 Sep 2015 00:14:37 +0000 (UTC) Keywords: code, Ada, comment Posted-Date: 27 Sep 2015 20:14:36 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1616 lucretia9@lycos.co.uk wrote: > [There are plenty of compilers for 8 bit machines, particulary at > retrocomputing sites, but I don't recall a lot of interesting code > generation stuff. They tend to have so few registers and be so > irregular that little of the optimization stuff intended for code > generation applies. -John] What I've seen seems to be ad hoc stuff with code gen going done in a pass or two. This is fine for simple languages like pascal and c, but I'm doing Ada, so it really needs to be fairly aggressive. Luke [I'd think the aggressive stuff would be largely machine independent, figuring out what's a constant so it can do stuff at compile time rather than in the code. Once you've done that, adding two numbers together or deferencing a pointer is pretty much the same in any language. -John]