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,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-17 12:50:17 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Certified C compilers for safety-critical embedded systems Date: 17 Jan 2004 15:50:16 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0F6Nb.1623$Tt.642@reader1.news.jippii.net> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1074372617 7019 192.74.137.185 (17 Jan 2004 20:50:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 17 Jan 2004 20:50:17 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4498 Date: 2004-01-17T15:50:16-05:00 List-Id: "Robert I. Eachus" writes: > Having said that, there are tests in the ACATS suite, that AFAIK, have > never been successfully compiled by any compiler. But they are still > believed to be legal Ada programs. (Mostly floating point programs that > require types with digits from 15 to 30. Again, AFIAK some of these > correctly compile on VAXes and on IBM mainframes, but no one has yet > supported digits 30.) I think a better way to look at it is: "legality" is somewhat defined by the compiler. Ada compilers are not required to support "digits 30" -- so if you write such a program, it is simply illegal (for most compilers). And Ada compilers can detect that just fine. Nothing to do with Godel or Halting Problems. Ada compilers can also detect when they are given programs that exceed the compiler's capacity (memory to store the parse tree, for example). Such programs are simply illegal (for that compiler). - Bob