From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_20, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cdaa3abe008a8f57 X-Google-Attributes: gid103376,public From: Sam Carnicelli Subject: Re: Ada Type Information Date: 1999/03/05 Message-ID: <36E05122.C2295113@lmco.com>#1/1 X-Deja-AN: 451708611 Content-Transfer-Encoding: 7bit References: <36E03843.3AD74457@lmco.com> <36e04564.9775393@news.pacbell.net> Content-Type: text/plain; charset=us-ascii Organization: Lockheed Martin OR&SS Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-05T00:00:00+00:00 List-Id: Tom Moran wrote: > >given a record type, the > >type starting bit > >position, and length in bits of all fields of a record > If there's no rep spec, then there's no guaranteed layout. Different > compilers may do it differently, or according to the phases of the > moon. With any of the methods I mentioned in my original post, the information should still be available.The stabs data comes from the compiler, so it would have the layout information. The rep spec data produced by the -gnatR flag obviously has the information. ASIS uses data from the tree file produced by the compiler. Again, the data should be available. > At run time, if you have an appropriate piece of code, it could > determine things using the storage place attributes, eg > R.Field1'Position, R.Field1.First_Bit, etc. Could you make a tool > using ASIS to tell the types, and generate code to tell the positions? I suppose I could generate some code, but it seems like there must be an easier way??? -- ------------------------------------------------------------------ Sam Carnicelli Lockheed Martin Phone : 315-456-2881 Syracuse, NY 13221-4840 Fax : 315-456-0107 e-mail: samuel.charles.carnicelli@lmco.com ------------------------------------------------------------------