comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-dejanews.com>
Subject: Re: Linux Kernel in Ada. Repost
Date: 1999/04/11
Date: 1999-04-11T00:00:00+00:00	[thread overview]
Message-ID: <7eqipd$p0n$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7ep9p3$9fm@drn.newsguy.com

In article <7ep9p3$9fm@drn.newsguy.com>,
  mike@nospam wrote:
> There is no free Ada/Posix binding document.
> one must buy it
> Something like $60 or $100 I hear? Do you know of a free
> one we can download?

Probably not .. most standards cost money. The fact that
there is a free version of the Ada standard available
is very unusual (and took a big fight). Note that the
freely available version of the Ada standard is not quite
the same as the official standard, it contains paragraph
numbers, which are not allowed in ISO standards :-)

> Some calls are easy, but some that takes in a pointer to
> some complicated C structure, might not be, you need to
> map an Ada record to match the C struct correctly.

That's typically very straightforward using pragma
Convention, and pragma Unchecked_Union.
> There are zillion (well, many) other such C structs, and
> many constants defined in those C header files, used. All
> of these need to have Ada equivelent.

Which is why tools like c2ada are useful ...
>
> This is a waste of time for me having to do this
> everytime I encounter a new struct, and having each Ada
> programmer do the same becuase there is no common
> Ada/Posix binding to use that allready did all this
> work for us.

Well first of all, if you are talking about the IEEE
standard binding, there most certainly is a common
binding.

If you are talking about a comprehensive thin binding,
so far we have seen no demand for such a thing, which
is why it does not exist, at least in the GNAT world.
If someone wants to volunteer to create this, great!

What people want to do typically is to interface to
either rather standard stuff, some of which is available
for example in GNAT.OS_Lib, or Interfaces.C.Streams (the
former tend to be thick, the latter very thin), and some
of which they spin themselves as needed (a typical Ada
program does not make calls to huge numbers of C
routines).

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-04-11  0:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-07  0:00 Linux Kernel in Ada. Repost Bruce MacDonald
1999-04-07  0:00 ` Matthew Heaney
1999-04-08  0:00 ` Jeffrey D. Cherry
1999-04-09  0:00   ` Corey Ashford
1999-04-09  0:00     ` me
1999-04-09  0:00       ` Tarjei Tj�stheim Jensen
1999-04-09  0:00         ` bill_
1999-04-10  0:00           ` Tarjei Tj�stheim Jensen
1999-04-10  0:00             ` Mich
1999-04-10  0:00               ` Tarjei Tj�stheim Jensen
1999-04-11  0:00                 ` Robert Dewar
1999-04-12  0:00                 ` OpenToken project announcement dennison
1999-04-11  0:00               ` Linux Kernel in Ada. Repost Robert Dewar
1999-04-10  0:00                 ` Kevin
1999-04-13  0:00                 ` Harry Tanovich
1999-04-13  0:00                   ` Robert Dewar
1999-04-11  0:00             ` Jerry van Dijk
1999-04-11  0:00           ` Jerry van Dijk
1999-04-11  0:00             ` Robert Dewar
1999-04-14  0:00               ` Aidan Skinner
1999-04-11  0:00           ` Robert Dewar
1999-04-10  0:00             ` mike
1999-04-11  0:00               ` Robert Dewar [this message]
1999-04-12  0:00                 ` Samuel Mize
1999-04-13  0:00                   ` Robert Dewar
1999-04-16  0:00                     ` Samuel Mize
1999-04-11  0:00             ` Accessing C macro constants from Ada95 Markus Kuhn
1999-04-11  0:00               ` Jerry van Dijk
1999-04-12  0:00               ` Robert Dewar
1999-04-12  0:00               ` Aidan Skinner
1999-04-13  0:00                 ` Robert Dewar
1999-04-12  0:00               ` Robert Dewar
1999-04-13  0:00                 ` Markus Kuhn
1999-04-13  0:00                   ` Robert Dewar
1999-04-13  0:00                     ` dennison
1999-04-12  0:00               ` Robert Dewar
1999-04-12  0:00               ` Tarjei Tj�stheim Jensen
1999-04-09  0:00       ` Linux Kernel in Ada. Repost Larry Kilgallen
1999-04-09  0:00         ` David Starner
1999-04-09  0:00           ` Brian Rogoff
1999-04-11  0:00           ` Robert Dewar
1999-04-12  0:00         ` Hans N. Beck
1999-04-09  0:00     ` Jeffrey D. Cherry
1999-04-11  0:00   ` Robert Dewar
1999-04-12  0:00     ` Bruce MacDonald
1999-05-03  0:00 ` Buz Cory
1999-05-03  0:00   ` Hans N. Beck
replies disabled

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