comp.lang.ada
 help / color / mirror / Atom feed
From: kassover@jupiter.crd.ge.com (David Kassover)
Subject: Re: if UNIX then USE_C ?? (was: Reasons for drop)
Date: 25 Feb 90 19:58:02 GMT	[thread overview]
Message-ID: <5518@crdgw1.crd.ge.com> (raw)
In-Reply-To: 34196@news.Think.COM

In article <34196@news.Think.COM> barmar@think.com (Barry Margolin) writes:
...
>The most obvious way in which a particular OS is oriented towards a
>particular language is when it comes to data being passed between
>application programs and OS routines.  Unix kernel routines and system
>library routines expect things like null-terminated strings and structures
>laid out the way that system's C compiler lays them.  Programs written in
>other languages often need to transform data when passing it into and out
>of the OS.
>
>Another area of language bias is documentation.  Unix manual pages for
>subroutines generally describe the invocation mechanism and argument types
>in C syntax.
>
...
 
C and Unix go together because they were implemented together,
the C language to make the writing of the OS (which, after all,
is just another computer program) easier.
 
 
Using standard libraries (all that means is that *someone else*
has implemented the interface from particular hardware to the
language specification  (Go ahead, flame.  I know that's
simplistic)).  If one is writing a truly embedded system, then
it's easy to fulfill the requirements of the Requirements and
Functional specifications (assuming you have them...).
 
On the other hand, if you're trying to implement a software
system where there are specific (or specified) desires to take
advantage of a particular platform feature, or that is intented
to by interacted with by humans, you have to start getting into
language extensions or hardware features, etc.



Back to Ada vs. C.  Ada, as specified, does a rather complete job
of eliminating bugs caused by single character typos.  (Ref the
DO statement problem)  One which it will not catch is that case
where two variables whose names differ by one character are both
declared in the same scope.
 
C, on the other hand, does still have cases where the placement
of a semicolon in the wrong place will alter the meaning of a
program without having a failed compile (Yes, I know Lint can ask
about things like this.  I know some compilers warn about
assumptions they are making.  ANyone out there ever use PL/C?).

  parent reply	other threads:[~1990-02-25 19:58 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-02-20 16:13 Reasons for dropping Ada Ted Holden
1990-02-20 21:04 ` Richard S D'Ippolito
1990-02-20 23:03   ` Reasons for keeping Ada David Kassover
1990-02-21  0:40     ` Clement Pellerin
1990-02-21 19:02   ` Reasons for dropping Ada Loren Louis Hart
1990-02-22 16:07     ` Mike Coffin
1990-02-22 17:01       ` if UNIX then USE_C ?? (was: Reasons for drop) Dennis M. O'Connor
1990-02-22 21:51         ` Barry Margolin
1990-02-23 19:34           ` Loren Louis Hart
1990-02-25 19:58           ` David Kassover [this message]
1990-02-26 12:45             ` John F Nixon
1990-02-26 18:28               ` David Kassover
1990-02-26 20:55                 ` John F Nixon
1990-02-26 22:00                   ` David Kassover
1990-02-27 18:55                 ` Jeremy Epstein
1990-02-28  1:19                   ` Alex Blakemore
1990-02-28 18:56                     ` Ada functions versus arrays (i.e. () vs [] ) Richard A Hammond
1990-03-01  3:25                       ` Alex Blakemore
1990-03-01 13:11                         ` Robert Firth
1990-03-02 10:56                           ` Mike Harrison
1990-03-02 23:46                           ` Scott Simpson
1990-03-02 10:42                         ` Mike Harrison
1990-03-06 19:13                       ` Erland Sommarskog
1990-03-08 14:21                         ` John Goodenough
1990-03-14 18:19                     ` if UNIX then USE_C ?? (was: Reasons for drop) RCAPENER
1990-03-01  0:29                   ` David Kassover
1990-03-01 15:11                     ` Steve Tynor
1990-03-01 18:29                       ` David Kassover
1990-03-02  0:19                 ` Robert D. Houk
1990-02-28 19:51         ` Andy DeFaria
1990-02-20 22:21 ` Reasons for dropping Ada Jeffrey M. Schweiger
replies disabled

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