From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Ravenscar - program termination
Date: Wed, 31 Jan 2007 10:01:55 +0100
Date: 2007-01-31T10:01:55+01:00 [thread overview]
Message-ID: <epplu3$lk2$1@cernne03.cern.ch> (raw)
In-Reply-To: <o4ac00dfe7.fsf@hod.lan.m-e-leypold.de>
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/
next prev parent reply other threads:[~2007-01-31 9:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-29 16:34 Ravenscar - program termination Maciej Sobczak
2007-01-29 19:53 ` Ludovic Brenta
2007-01-30 8:09 ` Maciej Sobczak
2007-01-30 9:37 ` Markus E Leypold
2007-01-30 17:48 ` Jeffrey R. Carter
2007-01-31 9:01 ` Maciej Sobczak [this message]
2007-01-31 9:59 ` Ludovic Brenta
2007-01-30 14:24 ` matteo.bordin
2007-01-30 19:15 ` Niklas Holsti
2007-01-30 20:30 ` Robert A Duff
2007-01-31 7:53 ` Niklas Holsti
2007-01-31 8:12 ` Ludovic Brenta
2007-01-31 8:59 ` Niklas Holsti
2007-01-31 18:02 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox