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: f849b,b8d52151b7b306d2 X-Google-Attributes: gidf849b,public X-Google-Thread: 103376,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-28 01:24:22 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.arch.embedded,comp.lang.ada Subject: Re: Certified C compilers for safety-critical embedded systems Date: Sat, 27 Dec 2003 20:57:53 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3fe00b82.90228601@News.CIS.DFN.DE> <3FE026A8.3CD6A3A@yahoo.com> <$km9afA3DB7$EAYO@phaedsys.demon.co.uk> <3feda44e_3@mk-nntp-1.news.uk.worldonline.com> <3fedbc41_3@mk-nntp-1.news.uk.worldonline.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1072558673 17588 134.91.1.34 (27 Dec 2003 20:57:53 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sat, 27 Dec 2003 20:57:53 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.arch.embedded:6211 comp.lang.ada:3876 Date: 2003-12-27T20:57:53+00:00 List-Id: In comp.lang.ada Ian Bell wrote: :> Wouldn't that become a famous compiler that finds out, at compile :> time, which value a certain variable is going to have? :-) :> : : Ah, so Ada is no better than C in that respect? In the dynamic Matrix example by R. Eachus a number of dynamic things can indeed be statically studied, it seems. This implies there is a measure for how much can be "found out" at compile time, given the features of language X. (In the above sentence I was only trying to say that there is _no_ real world compiler that can possibly solve the general problem of finding variables' values at runtime, for some program in any programming language, given some input :-) But that is not relevant here I think.) Splint is an indicator too. Considering maxSet/maxRead (array bounds, at least some), require/ensure (Eiffel contracts), modifies (in, out, in out parameter modes), etc., I suddenly feel very much at home in the language that tries to look like C, though not quite. Splint programs can only be translated by a compiler using the trick of hiding the new language in C comments. I guess that the additional information in the comments is then not available to the C compiler, so the C compiler can only profit from users who try to redesign their software, but it cannot itself profit from the comments... Will there be profit if a true Splint compiler will evaluate the additional information in the comments? Would the language look like, well, not C, semantically? :-) -- Georg