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,fd9a8f91bb89a8d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-18 12:23:51 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Is it possible to build an Ada cross-compiler for an 8-bit embedded target now that gcc 3.X has support for Ada? Date: Tue, 18 Nov 2003 14:17:47 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:2646 Date: 2003-11-18T14:17:47-06:00 List-Id: "Stephen Leake" wrote in message news:uptfp3bpu.fsf@nasa.gov... > Note that the "no runtime" subset of Ada is still a _far_ better > language than C. So it is worth persuing, since you already have the > code-generation part in the gcc back end. The result won't be "Ada", > but it will be a very useful subset. > > GNAT provides a "pragma No_Runtime", which reports errors for any code > that would use the runtime, so you can tell when you need to change > the code. I'm a bit suspicious of this claim, mainly because you'd have to run with checks suppressed in order to avoid use of the runtime. (Handling/reporting any failure, even to abort the program, would require some sort of runtime. Just stopping the program with no indication of why doesn't need any runtime, but its just as useful as running with checks suppressed.) Runtime checking is a very important part of Ada, (and one which doesn't add much overhead in general), and running without it would seem to be writing C with Ada syntax. After all, it's basic exception handling that makes Ada programs so bullet-proof. (The AdaIC webserver has yet to log any downtime related to the program itself - all downtime has been hardware or OS failures.) Randy.