comp.lang.ada
 help / color / mirror / Atom feed
From: JCS <SANS.SPAM@MERCI.FR>
Subject: Re: GNAT and no runtime
Date: Thu, 27 May 2004 01:12:15 +0200
Date: 2004-05-27T01:12:29+02:00	[thread overview]
Message-ID: <pan.2004.05.26.23.12.08.873586@hejmreto.net> (raw)
In-Reply-To: mailman.8.1085606984.391.comp.lang.ada@ada-france.org

On Wed, 26 May 2004 16:33:55 -0500, sk wrote:

>  > The author use the "pragma Supress (All_Checks)" and don't
>  > raise exception so obviously there is no such problem than
>  > I have.
> 
>  > But a real OS made in Ada should use the builtin checks and
>  > generate exception handling code, at least during the
>  > development stage.
> 
> As the author, I am aware of its limitations :-) But, how can
> you NOT suppress all checks until you have written the code
> to provide the checks.
Checks are builtin (i.e. generated by the compiler). There should be
suppressed only if you assume that you never make mistakes. (wich most 
developers seem to assume! (-: )

> 
> How can you have builtin's before you have the OS ? It seems you are
> arguing the old philisophical conundrum of the chicken and the egg.
No, I'm not willing to have a fully complete sets of tasking, memory
or real-time functionalities at this stage!
I'm just willing to have a basic Ada concept (exceptions) to go further in
the development without passing several days on a small bug because of a
stupid range check I didn't make somewhere in the code (just an exemple).

As for now, I studied a bit how exceptions works in GNAT, and it seems
that the only missing functionality is dynamic
memory allocation/deallocation. 
So now, I will try to make a static version, or maybe I will implement a
very basic dynamic memory allocation.

 
>  From my perspective, the author of the mini/toy/silly kernel,
> you have to build the hardware coordination next and then you build a
> run-time which can interface with the compiler.
Well, Ada exceptions do not involve any hardware support*, it should be
possible to implement them at the lowest level.

*: Well you need a CPU and some small amount of memory plus a basic
screen output function, but if you haven't that, you won't do many things
:-)

> My philosophy was/is based in the Intel architecture (i386 and above)
> which incorporates 4 "rings" of possible kernel security which I would
> arrange loosely as follows ...
> [...]
Even if I disagree with your design, it would be out of topic here.



  reply	other threads:[~2004-05-26 23:12 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 20:57 GNAT and no runtime JCS
2004-05-26  7:46 ` Rolf Ebert
2004-05-26 12:17   ` JCS
2004-05-28 15:13   ` JCS
2004-05-26 10:52 ` Wojtek Narczynski
2004-05-26 12:33   ` JCS
2004-05-26 16:05     ` Martin Krischik
2004-05-27  9:40       ` Wojtek Narczynski
2004-05-28 20:42       ` Wojtek Narczynski
2004-06-08  5:43         ` Martin Krischik
2004-06-09  5:07           ` Simon Wright
2004-06-09  6:22             ` Martin Krischik
2004-06-09  7:20               ` Martin Dowie
2004-06-09  7:52                 ` Martin Krischik
2004-06-09  9:26                   ` Martin Dowie
2004-06-09 11:50                     ` Martin Krischik
2004-06-10  5:15                       ` Simon Wright
2004-06-09 16:33             ` Robert I. Eachus
2004-05-27 10:23     ` Wojtek Narczynski
2004-05-27 12:45       ` JCS
2004-05-26 19:51   ` Georg Bauhaus
2004-05-27  9:43     ` Wojtek Narczynski
2004-05-26 16:44 ` sk
2004-05-26 17:42   ` JCS
2004-05-26 21:33     ` sk
2004-05-26 23:12       ` JCS [this message]
2004-05-27 13:58         ` sk
2004-05-27 21:30           ` JCS
2004-05-27 22:42             ` sk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox