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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43bbbb97dfcef0f5 X-Google-Attributes: gid103376,public From: Ole-Hjalmar Kristensen Subject: Re: A (hopefully) interesting question... Date: 2000/10/06 Message-ID: #1/1 X-Deja-AN: 678187613 Sender: ohk@gong3.clustra.com References: <970752964.3710.0.nnrp-10.d4f021c1@news.demon.co.uk> <39DD76B9.41C67EA6@tni.fr> X-Complaints-To: abuse@enitel.no X-Trace: news.telia.no 970816189 195.204.160.194 (Fri, 06 Oct 2000 09:09:49 CEST) Organization: Enitel Internet Public Access NNTP-Posting-Date: Fri, 06 Oct 2000 09:09:49 CEST Newsgroups: comp.lang.ada Date: 2000-10-06T00:00:00+00:00 List-Id: Pierre Dissaux writes: > Sploo wrote: > > > > Hi all, > > > > I often see people asks questions related to moving from C to Ada95, well > > I'm asking for information about the opposite step. > > > > I've been using Ada95 for a few years (and I also know C fairly well), but > > I've just started a job where I'll be writing *real-time* code in C. > > Obviously the simple things are present (semaphores etc.) but useful > > constructs such as Protected Objects, Accepts and so forth are lacking. > > > > As I'm comfortable designing real-time systems in Ada I'd like to use > > similar design methods for our (as yet undecided) implementation of > > real-time C. > > > > Does anyone have any information (books, websites) regarding 'getting the > > stuff you remember from Ada95 into C'!? > > The HOOD (Hierarchical Object Oriented Design) method could be a > solution. > > HOOD was initially developed to support Ada, but similar code generation > rules have been defined to target real-time C applications as well, from > the same high level design description. These C code generators must > generally be customized to perfectly fit RTOS capabilities and project > requirements (coding rules, ..), but this should not be a problem. > > In a HOOD design, it is possible to identify passive or active modules > and their interactions. Each module provides operations that can be > "constrained" to specify a communication protocol (synchronous, > asynchronous, IT, protected access, ...). > > General information about the HOOD method may be found at: > www.hood-method.org > > Information about our HOOD tool (STOOD) with Ada and C-RealTime code > generators: > www.tni.fr/tni/offre/stood/index.eng.html > > STOOD will be presented at next SigAda exhibition (TNI's booth) > > Pierre Dissaux > TNI > > > > > Thanks, > > > > Sploo. > > > > PS Anyone replying and saying 'why not just use Ada?' will be beaten with a > > copy of the Reference Manual. Soundly. Another approach would be to design the system in SDL. There are systems which allow code generation in Ada, C or Chill from the same SDL specification. -- Kabelsalat ist gesund. Ole-Hj. Kristensen