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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6405eefbf080daa6 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Is an RTOS Required for Ada? Date: 1999/05/16 Message-ID: <7hmbo3$jhr$1@nnrp1.deja.com>#1/1 X-Deja-AN: 478432447 References: <19990513150314.13727.00000147@ng-cs1.aol.com> X-Http-Proxy: 1.0 x34.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sun May 16 11:55:47 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-16T00:00:00+00:00 List-Id: In article <19990513150314.13727.00000147@ng-cs1.aol.com>, tramse@aol.com (Tramse) wrote: > I have an application in which Ada95 is required. The target > microcontroller is the Motorola 68336. It a real simple > application, it only needs to read/write to fixed addresses > (ports/data) and respond to a interupts. We have > a real fast boot up requirement and small RAM resource (7.5K) > and can't afford the boot time and RAM requried for a RTOS. > > Can we use Ada and compile direct to 68K code without using an > RTOS (like we could in C)? Certainly using GNAT, the answer is yes. You simply restrict your code so that it does not need RTOS services. The pragma Restriction capability provides a nice way to control these kind of restrictions so that the compiler enforces them. You need not go as far as GNORT to achieve this, there are many library routines which can be used perfectly fine in the kind of environment you are envisioning. You will not have tasking available, but you probably don't need it. Alternatively, as one customer of ours has done, you can implement your own tiny real time kernel to support the minimal amount of services that GNAT requires for implementing a restricted tasking capability corresponding to the Ravenscar profile. Robert Dewar Ada Core Technologies --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---