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=-1.3 required=5.0 tests=BAYES_00,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: tmoran@bix.com (Tom Moran) Subject: Re: Ada Type Information Date: 1999/03/05 Message-ID: <36e04564.9775393@news.pacbell.net>#1/1 X-Deja-AN: 451699529 References: <36E03843.3AD74457@lmco.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 920667882 206.170.2.238 (Fri, 05 Mar 1999 13:04:42 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Fri, 05 Mar 1999 13:04:42 PDT Newsgroups: comp.lang.ada Date: 1999-03-05T00:00:00+00:00 List-Id: >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. 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?