From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: How to access this package written in C?
Date: Mon, 26 Apr 2010 14:20:44 -0700 (PDT)
Date: 2010-04-26T14:20:44-07:00 [thread overview]
Message-ID: <a05be036-b291-486b-a0f2-3a1b926020b0@y17g2000yqd.googlegroups.com> (raw)
In-Reply-To: ln39yidm1u.fsf@nuthaus.mib.org
On 26 Kwi, 21:57, Keith Thompson <ks...@mib.org> wrote:
> But C still requires char* and void* to have the same representation.
>
> But in the Ada RM, I only see char_star in an example:
>
> subtype Char_Star is Char_Ptrs.Pointer;
I use this:
subtype Void_Ptr is System.Address;
It works like a charm. Please note that in order to link Ada with C
there is a need for a *pair* of *compatible* compilers - you cannot
compile the Ada part with a random Ada compiler and a C part with a
random C compiler and expect them to work together. There is a lot of
hand-waving in the multilanguage development, which means lots of
under-the-table assumptions can be taken for granted even though they
are not explicitly covered by any of the language standards.
--
Maciej Sobczak * http://www.inspirel.com
YAMI4 - Messaging Solution for Distributed Systems
http://www.inspirel.com/yami4
next prev parent reply other threads:[~2010-04-26 21:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 16:43 How to access this package written in C? resander
2010-04-21 17:39 ` Dmitry A. Kazakov
2010-04-22 20:12 ` Björn Persson
2010-04-22 21:12 ` Keith Thompson
2010-04-23 12:58 ` resander
2010-04-23 14:15 ` Dmitry A. Kazakov
2010-04-23 14:44 ` John B. Matthews
2010-04-23 15:39 ` John B. Matthews
2010-04-26 18:16 ` Robert A Duff
2010-04-26 19:57 ` Keith Thompson
2010-04-26 21:20 ` Maciej Sobczak [this message]
2010-04-27 6:52 ` Alex R. Mosteo
2010-04-27 22:29 ` Randy Brukardt
2010-05-03 8:12 ` Alex R. Mosteo
2010-04-27 0:20 ` Robert A Duff
2010-04-27 1:01 ` Keith Thompson
2010-04-27 16:07 ` Robert A Duff
2010-04-27 22:29 ` Randy Brukardt
2010-04-27 1:31 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox