From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: memory management
Date: 31 May 2005 08:04:47 -0400
Date: 2005-05-31T08:04:47-04:00 [thread overview]
Message-ID: <wcc64wzha8w.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: m2fyw7tsdr.fsf@grendel.local
Simon Wright <simon@pushface.org> writes:
> Robert A Duff <bobduff@shell01.TheWorld.com> writes:
>
> > By the way, I believe the fat pointers used by GNAT are an option --
> > there's some way to tell it to use thin pointers for
> > access-to-array. GNAT uses fat pointers (by default) only when the
> > designated type is an array, or when the designated type is unknown
> > to the compiler. Access-to-record, which is far more common, uses
> > thin pointers. I don't know of any Ada implementation besides GNAT
> > that uses fat pointers at all.
>
> I think that it uses fat pointers when the type concerned is
> indefinite.
I don't think so -- I think it's only for indefinite *arrays*
(or unknown types). There's really no advantage in fat pointers
for records, unless tags/discrims are separated out, which GNAT
does not do. (Nor does any other compiler I know of.)
> You can make it use thin pointers by specifying the 'Size of the
> pointer (to be 32) or, I'm pretty sure, by pragma Convention (C); I've
> sent classwide pointers via Xt client_data values using one of these
> techniques.
Yes, I think that's right.
- Bob
next prev parent reply other threads:[~2005-05-31 12:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-26 0:57 memory management alex goldman
2005-05-26 2:14 ` David C. Hoos, Sr.
2005-05-26 13:21 ` Steve
2005-05-26 18:40 ` alex goldman
2005-05-28 2:13 ` Steve
2005-05-28 5:19 ` Jeffrey Carter
2005-05-28 14:48 ` Steve
2005-05-26 18:47 ` Pascal Obry
2005-05-27 14:33 ` Martin Krischik
2005-05-26 12:10 ` Robert A Duff
2005-05-27 14:31 ` Martin Krischik
2005-05-28 11:44 ` Robert A Duff
2005-05-28 13:03 ` Simon Wright
2005-05-31 12:04 ` Robert A Duff [this message]
2005-06-02 15:42 ` Thomas Maier-Komor
2005-06-02 17:05 ` Robert A Duff
2005-06-03 1:41 ` Steve
2005-06-03 10:12 ` alex goldman
2005-06-13 4:01 ` Dave Thompson
-- strict thread matches above, loose matches on Subject: below --
2005-04-19 20:30 Memory_Management Anh Vo
2005-04-19 1:39 Memory_Management Bini
2005-04-19 9:18 ` Memory_Management Duncan Sands
2005-04-20 1:06 ` Memory_Management Bini
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox