comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: C vs. ada for embeded system
Date: Sat, 7 Mar 2009 10:12:55 -0800 (PST)
Date: 2009-03-07T10:12:55-08:00	[thread overview]
Message-ID: <d28b2af5-e748-4978-b44d-df63255f4534@v6g2000vbb.googlegroups.com> (raw)
In-Reply-To: gotp01$kbm$1@news.metronet.hr

On Mar 7, 12:23 pm, "abcd" <a...@aa.com> wrote:
> why ada is better of  "C" language  for 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 (=> proper Strings)
5. Built-in container libraries
6. Exceptions
7. Packages (i.e. proper modules - not faked up with 'guard macros' =>
no unintentional dependencies via '#include')
8. Named parameter association

I could go on...

Cheers
-- Martin



  parent reply	other threads:[~2009-03-07 18:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-07 12:23 C vs. ada for embeded system abcd
2009-03-07 13:16 ` Dmitry A. Kazakov
2009-03-07 18:12 ` Martin [this message]
2009-03-07 18:18 ` Pascal Obry
2009-03-07 18:29 ` Jeffrey R. Carter
2009-03-07 19:54 ` Per Sandberg
2009-03-07 23:26 ` anon
2009-03-08 10:43 ` Pascal Obry
2009-03-09 16:02 ` mccormick
2009-03-10 17:33   ` Martin Krischik
2009-03-11 10:14     ` christoph.grein
2009-03-11 14:07     ` John McCormick
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox