From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Adapting an Ada compiler to generate 8051 code (Again?! ;-) Date: Thu, 1 Apr 2021 13:22:29 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <41bc7a62-9c70-466d-b316-5fc74a3ee845n@googlegroups.com> <87im58a1up.fsf@nightsong.com> <87a6qk9uua.fsf@nightsong.com> NNTP-Posting-Host: JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61718 List-Id: On 01/04/2021 00:20, Randy Brukardt wrote: > "Luke A. Guest" wrote in message > news:s40urd$qbp$1@gioia.aioe.org... > ... >> AVR isn't really an accumulator arch, it's got 32 registers. Even the 6502 >> has a port, but that uses the zero page as virtual registers. The Z80 >> cannot do that as it starts executing from address 0 iirc. > > The Z-80 has enough registers for Ada (or at least a reasonable subtest) -- > see the original Janus/Ada compilers. If you want *real* registers, even the I know of the original Janus for Z80, never used it, is it a real Ada compiler or is it a Pascal like Ada? Have you considered compiling it as a cross compiler on Linux? > x86 doesn't have enough registers for reasonable code optimizations. A Tell me about it. Always hated the x86 when I was on m68k, look I have 8 Data and 8 Address registers, you have what? 4 useable ones!