Re: memory management
- From: Simon Wright <simon@xxxxxxxxxxxx>
- Date: Sat, 28 May 2005 14:03:12 +0100
Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx> 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.
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.
.
- Follow-Ups:
- Re: memory management
- From: Robert A Duff
- Re: memory management
- References:
- memory management
- From: alex goldman
- Re: memory management
- From: Robert A Duff
- Re: memory management
- From: Martin Krischik
- Re: memory management
- From: Robert A Duff
- memory management
- Prev by Date: Re: memory management
- Next by Date: Re: memory management
- Previous by thread: Re: memory management
- Next by thread: Re: memory management
- Index(es):