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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!cleanfeed1-b.proxad.net!nnrp15-2.free.fr!not-for-mail Return-Path: To: comp.lang.ada@ada-france.org References: In-Reply-To: ; from Jeffrey Carter at Tue, 16 Jan 2007 00:06:59 GMT Organization: 100 From: "Alexander E. Kopilovich" Date: Tue, 16 Jan 2007 07:37:22 +0300 (MSK) X-Mailer: Mail/@ [v2.45 MSDOS] Subject: Re: Translating an embedded C algorithm MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: content-transfer-encoding: 7bit X-Original-Content-Transfer-Encoding: 7bit X-Leafnode-NNTP-Posting-Host: 88.191.17.134 NNTP-Posting-Date: 16 Jan 2007 05:45:01 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1168922701 news-4.free.fr 30848 88.191.14.223:57144 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8155 Date: 2007-01-16T05:45:01+01:00 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).