From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Thick bindings to a C library and gnattest: suggestions?
Date: Tue, 02 Jul 2013 12:58:52 -0400
Date: 2013-07-02T12:58:52-04:00 [thread overview]
Message-ID: <wccip0sj3ub.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 93fc7ff5-73b2-455a-85ae-3f3505144de2@googlegroups.com
Maurizio Tomasi <ziotom78@gmail.com> writes:
> I do not understand what causes this problem: in both cases the
> address of A's first element is not stored in a global variable but
> used as the argument to a procedure call. So how can this be a
> "non-local pointer"?
If you pass a pointer as a parameter to some separately compiled
procedure (written in Ada or C or whatever), the compiler can't
very well know that the callee doesn't copy it into a global.
Even locally, the compiler isn't required to track how you copy
pointers around the place -- the rule is conservative, and based
on the _type_.
- Bob
next prev parent reply other threads:[~2013-07-02 16:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 9:02 Thick bindings to a C library and gnattest: suggestions? ziotom78
2013-07-01 9:45 ` Dmitry A. Kazakov
2013-07-01 11:11 ` Maurizio Tomasi
2013-07-01 11:41 ` Simon Wright
2013-07-01 12:00 ` Maurizio Tomasi
2013-07-01 12:42 ` Dmitry A. Kazakov
2013-07-01 19:07 ` Simon Wright
2013-07-01 12:32 ` Dmitry A. Kazakov
2013-07-01 12:41 ` Maurizio Tomasi
2013-07-01 12:47 ` Simon Wright
2013-07-02 8:55 ` Georg Bauhaus
2013-07-02 8:33 ` Maurizio Tomasi
2013-07-02 8:58 ` Dmitry A. Kazakov
2013-07-02 16:58 ` Robert A Duff [this message]
2013-07-02 17:00 ` Jeffrey Carter
2013-07-01 17:16 ` Jeffrey Carter
2013-07-02 4:24 ` Randy Brukardt
2013-07-02 4:37 ` Shark8
2013-07-02 5:04 ` tmoran
2013-07-02 22:27 ` Randy Brukardt
2013-07-03 12:02 ` Jacob Sparre Andersen
2013-07-02 3:16 ` Jerry
2013-07-02 4:02 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox