From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,278bbb0f0b3e412c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-21 00:33:18 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!128.39.3.168!uninett.no!not-for-mail From: "Tor Fredrik Aas" Newsgroups: comp.lang.ada Subject: Re: Ada subset for microcontrollers Date: Mon, 21 May 2001 09:40:08 +0200 Organization: UNINETT news service Message-ID: <9eagbt$59c$1@snipp.uninett.no> References: <01HW.B72906E0000B380B068598CC@news.pacbell.net> <3B0406D3.EF580628@boeing.com> <9e8nem$lvn$1@snipp.uninett.no> <01HW.B72D7C6200047CA0068509BC@news.pacbell.net> NNTP-Posting-Host: 158.36.165.202 X-Trace: snipp.uninett.no 990430397 5420 158.36.165.202 (21 May 2001 07:33:17 GMT) X-Complaints-To: news-abuse@uninett.no X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Xref: archiver1.google.com comp.lang.ada:7668 Date: 2001-05-21T09:40:08+02:00 List-Id: > The Lego RCX uses a special byte code interpreter that was designed to > work in the Lego environment. The last time i checked, the Ada subset > compiler for the RCX really generated NQC (Not Quite C, a C subset > invented by David Baum to program the RCX). NQC compiles down to the > byte code used by the RCX. Perhaps the latest version of the > Ada-to-RCX compiler does the same thing. However, since the firmware > that runs inside the RCX is proprietary, and the license only allows me > to copy it to my RCX, and the environment would undoubtedly be > different if i used an SH-8... I'm not sure i can get to where i want > to go by that route. > > It would be an interesting project to create my own Ada-subset compiler > for a microcontroller, but i just don't have the time. > Of cource you are right, I see this now that I actually read the documentation.... But a solution might reveal itself if you try LegOS, it uses the gcc-h8 port and thus you can use C to program it. I don't know if it's possible to make GNAT or some other compiler stop at assembler stage and the hand over the source to gas-h8. This is just an idea on top of my head, I don't know much about the GNAT backend or anything... Good luck ! -- Tor Fredrik Aas