comp.lang.ada
 help / color / mirror / Atom feed
* Using Ada (or SPARK) in Ada-unaware environment
@ 2006-01-19  9:05 Maciej Sobczak
  2006-01-19 10:16 ` Niklas Holsti
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Maciej Sobczak @ 2006-01-19  9:05 UTC (permalink / 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/



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-01-20  5:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19  9:05 Using Ada (or SPARK) in Ada-unaware environment Maciej Sobczak
2006-01-19 10:16 ` 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

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