comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Restructuring of Ada (was RE: Ada on Cypress CY7C646 (8051)?)
Date: Fri, 8 Jun 2001 10:01:18 -0400
Date: 2001-06-08T14:01:20+00:00	[thread overview]
Message-ID: <9fqlrg$nbe$1@nh.pace.co.uk> (raw)
In-Reply-To: 3B209AB8.51ECEEFA@amsjv.com

I was thinking about SPARK while writing the post. Its a fair example of
subsetting Ada - except for the catch that you observe: SPARK is intended to
avoid "dangerous" constructs within an existing implementation of Ada. I
could use SPARK when doing safety critical programming on a PC or Unix
system with an existing compiler with little or no special compiler
modifications. A language aimed at small computers would pretty much require
that a special compiler be built. (Or at least you'd have to heavily modify
an existing compiler to accept only some subset of Ada as input and to
generate the machine code for the computer of interest.)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Philip Anderson" <phil.anderson@amsjv.com> wrote in message
news:3B209AB8.51ECEEFA@amsjv.com...
>
> Replace "small machines" with "safety-related systems" and you'll get
> the rationale for SPARK.  It's a subset of Ada, since certain constructs
> are not allowed, although extended by annotations in the form of Ada
> comments.  So it passes through any Ada compiler, which generates the
> required assembly code, but the SPARK rules are checked by SPARK tools.
>
> Of course, it's not quite the same since you need a specialist compiler
> to generate the small machine code, but I wonder whether an Ada compiler
> generating C as an intermediate level is an answer?
>






  reply	other threads:[~2001-06-08 14:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07 17:54 Restructuring of Ada (was RE: Ada on Cypress CY7C646 (8051)?) Beard, Frank
2001-06-07 18:43 ` Marin David Condic
2001-06-08  9:28   ` Philip Anderson
2001-06-08 14:01     ` Marin David Condic [this message]
2001-06-08 14:30     ` Marin David Condic
2001-06-08 18:29       ` Ada and SBC's, was: Re: Restructuring of Ada Simon Clubley
2001-06-08 19:35         ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2001-06-07 20:00 Restructuring of Ada (was RE: Ada on Cypress CY7C646 (8051)?) Beard, Frank
replies disabled

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