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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43bbbb97dfcef0f5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-05 23:55:25 PST Path: supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!oleane.net!oleane!ntserveur.tni.fr!not-for-mail From: Pierre Dissaux Newsgroups: comp.lang.ada Subject: Re: A (hopefully) interesting question... Date: Fri, 06 Oct 2000 07:52:41 +0100 Organization: TNI - www.tni.fr Message-ID: <39DD76B9.41C67EA6@tni.fr> References: <970752964.3710.0.nnrp-10.d4f021c1@news.demon.co.uk> NNTP-Posting-Host: tni-sparc22.tni.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 4.1.3_U1 sun4m) Xref: supernews.google.com comp.lang.ada:1008 Date: 2000-10-06T07:52:41+01:00 List-Id: 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.