comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Adapting an Ada compiler to generate 8051 code (Again?! ;-)
Date: Wed, 31 Mar 2021 18:06:42 -0500	[thread overview]
Message-ID: <s42va3$9v3$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: s3uskg$vif$1@gioia.aioe.org

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> 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.


  parent reply	other threads:[~2021-03-31 23:06 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30  9:04 Adapting an Ada compiler to generate 8051 code (Again?! ;-) mockturtle
2021-03-30  9:56 ` Dmitry A. Kazakov
2021-03-30 11:24   ` Gautier write-only address
2021-03-30 11:27   ` mockturtle
2021-03-30 12:01     ` Dmitry A. Kazakov
2021-03-31 23:08       ` Randy Brukardt
2021-03-31 23:06   ` Randy Brukardt [this message]
2021-03-30 10:40 ` Niklas Holsti
2021-03-30 11:32   ` mockturtle
2021-03-31 23:14   ` Randy Brukardt
2021-04-01 15:07     ` Niklas Holsti
2021-04-01 23:34       ` Randy Brukardt
2021-03-30 11:24 ` Luke A. Guest
2021-03-30 13:28   ` Luke A. Guest
2021-03-30 12:45 ` Björn Lundin
2021-03-30 15:49 ` Shark8
2021-03-30 19:16 ` Paul Rubin
2021-03-30 21:28   ` Luke A. Guest
2021-03-30 21:48     ` Paul Rubin
2021-03-31  4:46       ` Luke A. Guest
2021-03-31  7:19         ` Simon Wright
2021-03-31 23:20         ` Randy Brukardt
2021-04-01 12:22           ` Luke A. Guest
2021-04-01 23:43             ` Randy Brukardt
2021-04-02  0:41               ` Luke A. Guest
2021-03-31  8:23     ` Niklas Holsti
2021-03-31 20:46 ` Gautier write-only address
2021-03-31 21:14   ` Shark8
2021-03-31 21:25     ` Gautier write-only address
2021-03-31 21:46       ` Shark8
2021-03-31 23:22       ` Randy Brukardt
2021-04-01 13:19   ` Luke A. Guest
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox