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-Thread: 103376,7d5642dc1158588b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ravenscar - program termination Date: Wed, 31 Jan 2007 10:01:55 +0100 Organization: CERN News Message-ID: References: <87zm81txs1.fsf@ludovic-brenta.org> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1170234115 22146 137.138.37.241 (31 Jan 2007 09:01:55 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Wed, 31 Jan 2007 09:01:55 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (X11/20061220) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:8762 Date: 2007-01-31T10:01:55+01:00 List-Id: Markus E Leypold wrote: >> Still, it looks like I cannot say: >> >> pragma Profile(Ravenscar); >> >> in my Hello World program even though this program meets the >> objectives of the profile. That's not fair! :-) > > Well, it terminates. What does termination mean in a "high integrity" > embedded system And who said that Ravenscar is for embedded systems *only*? The word "embedded" does not even appear in the document, apart from the example in chapter 7 (which as an example is not normative). I wrote a Hello World program and I want to impress my boss telling him that my program complies with Ravenscar recommendations. That sounds much more serious than a plain dumb Hello World program! I've found a way: with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello Ravenscar!"); loop null; end loop; end Hello; Wow! ;-) But the CPU is spinning like crazy. OK, back to serious mode. One of the Ravenscar objectives is to allow implementations to provide stripped-down runtime when the profile is requested. This is a nice feature, even for programs that are not safety-critical in nature. How does GNAT handle this? Can I expect it to build smaller (faster?) executables when I say pragma Profile(Ravenscar) provided that the program complies to all the restrictions anyway? -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/