comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Finding a record representation used by gnat
Date: 1998/11/05
Date: 1998-11-05T00:00:00+00:00	[thread overview]
Message-ID: <3641D877.6EC9BFCC@elca-matrix.ch> (raw)
In-Reply-To: 01be0864$2cae12f0$0f010180@nc84c

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.




      parent reply	other threads:[~1998-11-05  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-04  0:00 Finding a record representation used by gnat Mark
1998-11-05  0:00 ` Stephen Leake
1998-11-05  0:00 ` Mats Weber [this message]
replies disabled

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