From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: ADA vs. C++ Shared Memory
Date: 1998/09/02
Date: 1998-09-02T00:00:00+00:00 [thread overview]
Message-ID: <uww7mduob.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 6sg034$fbc$1@nnrp1.dejanews.com
kelch@my-dejanews.com writes:
> Hy !!
>
> Is it possible to create a shared memory between ADA and C++.
> If anyone know how, please report me
If you mean "shared variables between an Ada module and a C++ module",
that's easy, just export a variable from Ada using convention C, and
declare the same variable in C++ using "extern C". Then link the code
together into one executable, and voila.
If you mean "shared memory between one process running Ada code and
another process running C++ code", that's operating system and
compiler dependent.
The single executable approach is much simpler, and much more
portable.
-- Stephe
next prev parent reply other threads:[~1998-09-02 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-01 0:00 ADA vs. C++ Shared Memory kelch
1998-09-02 0:00 ` Stephen Leake [this message]
1998-09-03 0:00 ` Jerry van Dijk
1998-09-04 0:00 ` John McCabe
-- strict thread matches above, loose matches on Subject: below --
1998-09-01 0:00 Wolfgang.Kelch
1998-09-01 0:00 ` John McCabe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox