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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!aioe.org!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Tue, 16 Jan 2007 11:37:28 -0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: zEJK12x7djBBvRARhduGQA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) Xref: g2news2.google.com comp.lang.ada:8169 Date: 2007-01-16T11:37:28-02:00 List-Id: Alexander E. Kopilovich escreveu: > Jeffrey Carter wrote: > >>> I am in the process of writing a book about real-time embedded >>> development (hardware and software). >>> >>> Unfortunately I'm really a C programmer, with very little experience >>> of other languages, ... >> I would think that someone qualified to write such a book would be >> familiar with at least one language that was designed for RT embedded SW >> development. Such a language would have things like tasking, timing, and >> fixed-point types built in. >> >> Clearly C is not such a language, so I have to wonder about the >> qualifications of someone who only knows C. > > Translation of Jeff's reply: > > Ada has many features, which are directly related to real-time embedded > programming, and which have no counterparts in C (tasking, timing, and > fixed-point types built in). > > Therefore there is little chance for translation of a program of that kind > from C to Ada without essential redesign of that program (for making proper > use of available Ada features). > > But if the program will be redesigned for Ada then there will be little sense > in placing those C and Ada implemetation side-by-side for comparison. > > So, within this kind of software, probably C and Ada may be sensibly put > side-by-side not for pieces of code or relatively small algorithms, but only > for whole projects (applications or even systems). > Very good indeed! And perhaps it begs to another aspect: in a such kind of work, the OP would need to find a person knowledgeable enough to do the design of the Ada version to insure the implementation is a good representation of the best practices with this technology.