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-Thread: 103376,b9c193e01cab96e4 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!v6g2000vbb.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: C vs. ada for embeded system Date: Sat, 7 Mar 2009 10:12:55 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 81.151.68.6 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236449575 24282 127.0.0.1 (7 Mar 2009 18:12:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 7 Mar 2009 18:12:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v6g2000vbb.googlegroups.com; posting-host=81.151.68.6; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4971 Date: 2009-03-07T10:12:55-08:00 List-Id: On Mar 7, 12:23=A0pm, "abcd" wrote: > why ada is better of =A0"C" language =A0for embeded system? For me the features which aid embedded systems in particular are: 1. Built-in real-time clock 2. Built-in fixed point numbers 3. Portability 4. Less buggy* * that's taking an average bunch of engineers who know their chosen language to a decent level. You can get dummies writing cr*p Ada and super-programmers turning out bug-free C. Which matches your current team? Which matches your future team? The features that are in the 'pro' column for Ada that aren't specific to embedded systems are: 1. Ranged elementary types (i.e. int and float with ranges that run- time checks) 2. Built-in tasking 3. No pre-processor 4. Proper arrays (=3D> proper Strings) 5. Built-in container libraries 6. Exceptions 7. Packages (i.e. proper modules - not faked up with 'guard macros' =3D> no unintentional dependencies via '#include') 8. Named parameter association I could go on... Cheers -- Martin