comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com
Subject: Re: Ada Type Information
Date: 1999/03/05
Date: 1999-03-05T00:00:00+00:00	[thread overview]
Message-ID: <7bpohc$j2t$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36E03843.3AD74457@lmco.com

In article <36E03843.3AD74457@lmco.com>,
  Sam Carnicelli <samuel.charles.carnicelli@lmco.com>
wrote:

> I've been lurking around this newsgroup for a couple of
> weeks and I thought some of the people here might be able
> to offer some valuable advice.

Since you mention the -gnatR switch in the latest 3.12
GNAT technology, let me say exactly what this does. For
all named array and record types in the program it gives
the type name, and the representation characteristics.

I must say I am a bit puzzled as to why this does not
give you all the information you want. Here is some sample
output from -gnatR:

Source
------

procedure q is
   type r is record
      a : integer := 0;
      s : string (1 .. 5);
      t : integer;
   end record;
begin
   null;
end q;

Output from -gnatR
------------------

Representation information for unit q
--------------------------------------

for r'Object_Size use 128;
for r use record
   a at  0 range  0 .. 31;
   s at  4 range  0 .. 39;
   t at 12 range  0 .. 31;
end record;

Robert Dewar
Ada Core Technologies



-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-03-05  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-05  0:00 Ada Type Information Sam Carnicelli
1999-03-05  0:00 ` Tom Moran
1999-03-05  0:00   ` Sam Carnicelli
1999-03-05  0:00 ` dewar [this message]
1999-03-06  0:00   ` Tom Moran
1999-03-08  0:00     ` Sam Carnicelli
1999-03-08  0:00   ` Sam Carnicelli
1999-03-09  0:00     ` robert_dewar
1999-03-09  0:00   ` korisko
1999-03-05  0:00 ` dennison
1999-03-08  0:00   ` Sam Carnicelli
1999-03-08  0:00     ` dennison
1999-03-08  0:00       ` Sam Carnicelli
1999-03-09  0:00       ` robert_dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox