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!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Adapting an Ada compiler to generate 8051 code (Again?! ;-) Date: Tue, 30 Mar 2021 12:16:46 -0700 Organization: A noiseless patient Spider Message-ID: <87im58a1up.fsf@nightsong.com> References: <41bc7a62-9c70-466d-b316-5fc74a3ee845n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="ed14bc8a640c59e1aa19dcc6f31075a0"; logging-data="30175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OFVmqohlqruHBT1WnIEsb" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:PMgWuJAjqJ4FFlLBmvlknQ/+oiU= sha1:0q2XRgKFY3H3DiXPamXuAqGLP2E= Xref: reader02.eternal-september.org comp.lang.ada:61692 List-Id: mockturtle writes: > 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). Can you possibly avoid that? There are many microcontrollers that GCC has back ends for, so you could use GNAT. E.g. I think GNAT for the AVR is a thing. Of course even at the low end, ARM is everywhere now, and that is even easier. Besides the approaches other people have mentioned, I don't know if there are any really large obstacles to targeting GCC to the 8051, or to some kind of VM that the 8051 can simulate, since you don't care about performance. If you do care about performance, you won't be using an 8051 in the first place ;-).