From: "Marin David Condic, 561.796.8997, M/S 731-93" <condicma@PWFL.COM>
Subject: Re: ada and robots
Date: 1997/06/12
Date: 1997-06-12T00:00:00+00:00 [thread overview]
Message-ID: <97061213082757@psavax.pwfl.com> (raw)
Joe Gwinn <gwinn@RES.RAY.COM> writes:
>There is tons of such code available for free on the internet. Just look
>for I/O drivers, such as for UNIX and VxWorks. VxWorks Board Support
>Packages are another example.
>
>Even C-coded I/O drivers and kernel initialization sequences resort to
>some assembly code.
>
>As for shared memory, look into the handling of driver comm pools, queues
>shared between tasks and also with ISRs. And so on.
>
>For UNIX drivers, there are multiple books available on exactly how to
>write such drivers, all in C. Most include (annotated) sample driver
>code.
>
>I would submit that there is ample evidence that C can be used for direct
>hardware control, and for shared memory.
>
>I would not claim that all who have tried such things have succeeded,
>regardless of language. Many programmers couldn't write an I/O driver if
>their life depended on it.
>
It seems that what your saying is that C has been used to develop
code which exercises direct control of hardware and is able to
implement shared memory data structures between threads. I don't
think that anyone would doubt this.
I think what I originally took exception to was the claim that Ada
*can't* do these things. If I was trying to implement some
extension to Unix, (a device driver, perhaps) I probably wouldn't
spit into the wind by trying to do it in Ada (Given that the whole
OS is written in C, all the support tools are C oriented and I
wouldn't want to maintain one lonely little Ada module afloat in a
Sea of C ;-) But that's a far cry from claiming that Ada is
incapable of being used to write device drivers.
I've written lots of code which implements interfaces to A/D
converters, ISR's, discrete I/O, Mil-Std-1553 buses, UARTs,
Manchester data links, etc, etc, etc. All in Ada(83). I've shared
memory between tasks and between processors using Ada(83) (albeit,
not using the "pragma SHARED" - but implementing what you'd have
to do for yourself in C anyway - a semaphore or some hardware
support for shared memory.). So it's a little hard to read "Ada
can't be used down at the bare metal" when you know that you've
been doing just that for years - and that it's not at all
any more difficult than it would be in C.
While I won't presume to speak for Dr. Dewar (I know he's pretty
good at clarifying himself :-) I think its fair to say we'd both
like to see an example of something you believe that C does in
dealing with the bare machine that you feel would be difficult in
Ada. I'll accept that there may be some things C does better than
Ada, but I'd like to see an example.
MDC
Marin David Condic, Senior Computer Engineer ATT: 561.796.8997
Pratt & Whitney GESP, M/S 731-96, P.O.B. 109600 Fax: 561.796.4669
West Palm Beach, FL, 33410-9600 Internet: CONDICMA@PWFL.COM
===============================================================================
"You spend a billion here and a billion there. Sooner or later it
adds up to real money."
-- Everett Dirksen
===============================================================================
next reply other threads:[~1997-06-12 0:00 UTC|newest]
Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-12 0:00 Marin David Condic, 561.796.8997, M/S 731-93 [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-07-02 0:00 Ada and robots Huy Vo
1997-07-04 0:00 ` Richard A. O'Keefe
1997-07-01 0:00 Huy Vo
1997-07-02 0:00 ` Wes Groleau
1997-06-30 0:00 Huy Vo
1997-07-01 0:00 ` Alan Brain
1997-07-11 0:00 ` Will Rose
1997-07-02 0:00 ` Mattias Sj�sv�rd
[not found] <867541382.23405@dejanews.com>
1997-06-29 0:00 ` John Howard
1997-06-26 0:00 Huy Vo
1997-06-27 0:00 ` Wes Groleau
1997-06-27 0:00 ` nma123
1997-06-27 0:00 ` Richard A. O'Keefe
1997-06-27 0:00 ` Alan Brain
1997-06-27 0:00 ` Wes Groleau
1997-06-27 0:00 ` Stephen Leake
1997-06-27 0:00 ` Jon S Anthony
1997-06-24 0:00 Huy Vo
1997-06-25 0:00 ` Alan Brain
1997-06-25 0:00 ` Dale Stanbrough
1997-06-25 0:00 ` Jon S Anthony
1997-06-25 0:00 ` Wes Groleau
1997-06-26 0:00 ` Ken Garlington
1997-07-01 0:00 ` Tom Moran
1997-06-20 0:00 Huy Vo
1997-06-23 0:00 ` Jon S Anthony
1997-06-19 0:00 ada " Jon S Anthony
1997-06-19 0:00 ` Brian Rogoff
1997-06-20 0:00 ` Jon S Anthony
1997-06-22 0:00 ` John G. Volan
1997-06-25 0:00 ` Richard A. O'Keefe
1997-06-23 0:00 ` Robert Dewar
1997-06-24 0:00 ` Brian Rogoff
1997-06-16 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-16 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-17 0:00 ` Joe Gwinn
1997-06-18 0:00 ` Jon S Anthony
1997-06-18 0:00 ` Brian Rogoff
1997-06-20 0:00 ` Robert Dewar
1997-06-23 0:00 ` Geert Bosch
1997-07-02 0:00 ` Robert Dewar
1997-06-23 0:00 ` Richard Kenner
1997-06-23 0:00 ` Robert Dewar
1997-06-25 0:00 ` Jonathan Guthrie
1997-06-25 0:00 ` Will Rose
1997-06-21 0:00 ` Nick Roberts
1997-06-09 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-05 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-09 0:00 ` Jerry Petrey
1997-06-10 0:00 ` Alan Brain
1997-06-10 0:00 ` Joe Gwinn
1997-06-11 0:00 ` Robert Dewar
1997-06-11 0:00 ` Samuel Mize
1997-06-13 0:00 ` Erik Magnuson
1997-06-17 0:00 ` Joe Gwinn
1997-06-18 0:00 ` Jon S Anthony
1997-06-19 0:00 ` Jonathan Guthrie
1997-06-20 0:00 ` Robert Dewar
1997-06-11 0:00 ` Alan Brain
1997-06-11 0:00 ` Joe Gwinn
1997-06-11 0:00 ` Spam Hater
1997-06-05 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-05-28 0:00 John Bohn
1997-05-29 0:00 ` Michael F Brenner
1997-05-29 0:00 ` Stephen Leake
1997-05-30 0:00 ` John Cook
1997-05-30 0:00 ` Tom Moran
1997-06-01 0:00 ` Dale Stanbrough
1997-06-02 0:00 ` John G. Volan
[not found] ` <5mv984$7kn@news.emi.com>
1997-06-03 0:00 ` Martin A. Stembel
1997-06-03 0:00 ` Joe Gwinn
1997-06-04 0:00 ` Pat Rogers
1997-06-05 0:00 ` Joe Gwinn
1997-06-14 0:00 ` Robert Dewar
1997-06-16 0:00 ` Ken Garlington
1997-06-16 0:00 ` Robert Dewar
1997-06-17 0:00 ` Joe Gwinn
1997-06-28 0:00 ` Mike Stark
1997-07-03 0:00 ` Joe Gwinn
1997-06-04 0:00 ` John G. Volan
1997-06-05 0:00 ` Joe Gwinn
1997-06-14 0:00 ` Robert Dewar
1997-06-17 0:00 ` Joe Gwinn
1997-07-03 0:00 ` Shmuel (Seymour J.) Metz
[not found] ` <9706052229.AA29554@jaguar.nmc.ed.ray.com>
1997-06-06 0:00 ` John G. Volan
1997-06-07 0:00 ` RC
1997-06-09 0:00 ` Joe Gwinn
1997-06-05 0:00 ` Jon S Anthony
1997-06-05 0:00 ` Joe Gwinn
1997-06-14 0:00 ` Robert Dewar
1997-06-10 0:00 ` Robert Dewar
1997-06-10 0:00 ` Joe Gwinn
1997-06-11 0:00 ` Robert Dewar
1997-06-12 0:00 ` George Haddad
1997-06-16 0:00 ` Matthew S. Whiting
1997-06-17 0:00 ` Stephen Leake
1997-06-17 0:00 ` Robert A Duff
1997-06-20 0:00 ` jim granville
1997-06-21 0:00 ` Robert Dewar
1997-06-29 0:00 ` Matthew Heaney
1997-07-03 0:00 ` Shmuel (Seymour J.) Metz
1997-07-13 0:00 ` Robert Dewar
1997-06-17 0:00 ` Jon S Anthony
1997-06-17 0:00 ` Matthew S. Whiting
1997-06-18 0:00 ` Robert A Duff
1997-06-18 0:00 ` Jon S Anthony
1997-06-22 0:00 ` John G. Volan
1997-06-18 0:00 ` Samuel Mize
1997-06-18 0:00 ` Matthew S. Whiting
1997-06-17 0:00 ` Samuel Mize
1997-06-18 0:00 ` Steve O'Neill
1997-06-19 0:00 ` Anonymous
1997-06-19 0:00 ` Kenneth W. Sodemann
1997-06-20 0:00 ` Stephen Leake
1997-06-20 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-18 0:00 ` Ken Garlington
1997-07-17 0:00 ` Shmuel (Seymour J.) Metz
1997-06-20 0:00 ` Robert Dewar
1997-06-20 0:00 ` Adam Beneschan
1997-06-04 0:00 ` RC
1997-06-04 0:00 ` John G. Volan
1997-06-04 0:00 ` Larry Kilgallen
1997-06-05 0:00 ` Jon S Anthony
1997-06-02 0:00 ` Nick Roberts
1997-06-04 0:00 ` Jan Galkowski
1997-06-05 0:00 ` Albert K. Lee
1997-06-06 0:00 ` dana
1997-06-07 0:00 ` John G. Volan
1997-06-10 0:00 ` dana
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox