comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: SPARK and Interfaces.C
Date: Wed, 25 May 2005 08:54:22 +0100
Date: 2005-05-25T08:54:22+01:00	[thread overview]
Message-ID: <f8mHLBCu8ClCJwjc@diphi.demon.co.uk> (raw)
In-Reply-To: 1116966852.991519.250200@g43g2000cwa.googlegroups.com

In article <1116966852.991519.250200@g43g2000cwa.googlegroups.com>, 
ich_bin_elvis@hotmail.com writes
>You were corret about the above my fault so thanks for seeing that. One
>more question and I hope this is the last for my concern for awhile.
>Pragma Import is it okay to use that or is it best to use --#hide
>
>procedure AdaInit;
>   pragma Import (C, AdaInit, "adainit");
>   --  initialize Ada runtime library
>
>   procedure AdaFinal;
>   pragma Import (C, AdaFinal, "adafinal");
>   --  finalize Ada runtime library
>
>adainit and adafinal is not in the adb file since those are imported so
>I get an error. what is done in the real world concerning pragma
>imports?? pragma export is ingored by the examiner but this is not the
>case for ada import
I don't think that there is a universal best answer for this sort of 
question - it all depends on what level of confidence you require for 
the software and how you can get that confidence at minimum cost.

Clearly you are developing a system with some non-SPARK components, and 
so you need to think about how you are going to get the same level of 
confidence in that software as you are getting with the SPARK 
components. You need to identify the SPARK boundary - i.e. what parts of 
the system will be SPARK, and analysable by the tools and what parts 
will be non-SPARK and so require analysis by other means.

You should define the SPARK boundary so that you get the maximum 
confidence in the complete system for the effort that you have available 
(which isn't always achieved by getting as much as possible into SPARK.)

So the answer is to look at the options and pick the one that suits your 
situation.

Cheers,

Phil
-- 
JP Thornley



      reply	other threads:[~2005-05-25  7:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 17:34 SPARK and Interfaces.C ich_bin_elvis
2005-05-13 19:40 ` JP Thornley
2005-05-14 12:15   ` Rod Chapman
2005-05-14 13:31     ` Martin Dowie
2005-05-14 15:41       ` Rod Chapman
2005-05-17 10:55     ` ich_bin_elvis
2005-05-17 14:40       ` Rod Chapman
2005-05-19  8:12         ` ich_bin_elvis
2005-05-19  8:46         ` ich_bin_elvis
2005-05-19  9:01           ` Rod Chapman
2005-05-19 10:25             ` ich_bin_elvis
2005-05-21 22:52               ` JP Thornley
2005-05-23  9:48                 ` ich_bin_elvis
2005-05-23 13:30                   ` JP Thornley
2005-05-23 15:10                     ` JP Thornley
2005-05-24  8:57                       ` ich_bin_elvis
2005-05-24 10:36                         ` JP Thornley
2005-05-24 20:34                           ` ich_bin_elvis
2005-05-25  7:54                             ` JP Thornley [this message]
replies disabled

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