comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Using Ada (or SPARK) in Ada-unaware environment
Date: Thu, 19 Jan 2006 10:05:22 +0100
Date: 2006-01-19T10:05:22+01:00	[thread overview]
Message-ID: <dqnkoj$pb4$1@sunnews.cern.ch> (raw)

Hi,

Imagine a control system (to be developed) which needs to interact with 
some devices. Those devices are supplied with C drivers and libraries.

What is the recommended practice for developing this control system in 
Ada (or SPARK)? I basically see two options for this:

1. Enjoy Ada's ability to interface with C libraries (pragma Import) and 
write everything in Ada.

2. Write separate programs in C (or C++) that will be responsible only 
for talking to the devices via their C access libraries. Write the main 
controller in Ada, as another separate program, and use some form of 
interprocess communication to have all those components talk.

The advantage of the second option is that the controller part can be 
easily tested in isolation or in a fake environment.

Are there some other options for this? What is the industry recommented 
practice?

Regards,

-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



             reply	other threads:[~2006-01-19  9:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19  9:05 Maciej Sobczak [this message]
2006-01-19 10:16 ` Using Ada (or SPARK) in Ada-unaware environment Niklas Holsti
2006-01-19 10:21 ` Peter Amey
2006-01-19 20:05   ` Jeffrey R. Carter
2006-01-20  5:08   ` tmoran
2006-01-19 15:00 ` Steve
2006-01-19 15:45   ` Maciej Sobczak
2006-01-19 20:26     ` Simon Wright
2006-01-20  0:50 ` John
replies disabled

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