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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ae1c40eeb14aa7f7 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Finding a record representation used by gnat Date: 1998/11/05 Message-ID: <3641D877.6EC9BFCC@elca-matrix.ch>#1/1 X-Deja-AN: 408709626 Content-Transfer-Encoding: 7bit References: <01be0864$2cae12f0$0f010180@nc84c> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: ELCA Matrix SA Mime-Version: 1.0 Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada Date: 1998-11-05T00:00:00+00:00 List-Id: Mark wrote: > > Is it possible to find the representation used for a record compiled using > GNAT 3.11a2 (DEC ALPHA). > I was hoping that either a gcc switch or a gnat utility to tell me this. > > For those who want to know why ... > > I am also compiling the same source using GNAT 3.10p under NT, and then > sending messages between the two different machine. As expected they > allocate fields differently. Don't do that. Different versions of the same compiler on the same platform may come up with different record layouts. And there are also big endian/little endian and alignment issues. You should either use GLADE (or parts thereof) or create your own architecture-independent protocol for transmitting your data.