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!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Adapting an Ada compiler to generate 8051 code (Again?! ;-) Date: Wed, 31 Mar 2021 18:06:42 -0500 Organization: JSA Research & Innovation Message-ID: References: <41bc7a62-9c70-466d-b316-5fc74a3ee845n@googlegroups.com> Injection-Date: Wed, 31 Mar 2021 23:06:43 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="10211"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:61710 List-Id: "Dmitry A. Kazakov" wrote in message news:s3uskg$vif$1@gioia.aioe.org... > On 2021-03-30 11:04, mockturtle wrote: > >> for a project related to a possible start-up, we need to program a Flash >> controller that has a 8051 core (as many other controllers). I would >> like using Ada for that, but I discovered (also by browsing c.l.a.) that >> there is no Ada compiler producing 8051 code. > > I think the efforts would be better invested in recycling all existing > 8051 cores. Make the planet greener! (:-)) > > Honestly, there is little useful one could do in 64K. Remember what one > famous thinker and epidemiologist said about 640K? [640K is 10 times more > than 64K] Gee, the early versions of Janus/Ada were *hosted* in 48K. Apparently, a compiler is nothing useful??? ;-) We studied this problem back in the day (30+ years ago).The problem is the 8051 architecture, which doesn't have a usable stack or the instructions to make one. You would have to avoid recursion and any long chain of calls. Not sure whether the result would program much like Ada, it would be much closer to Fortran 66. Randy.