From: Jeffrey Carter <spam@spam.com>
Subject: Re: What is correct way to pack records
Date: Thu, 18 Nov 2004 00:27:03 GMT
Date: 2004-11-18T00:27:03+00:00 [thread overview]
Message-ID: <r%Rmd.1705$Tq6.637@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <3fc90377.0411171620.7a3bcfd9@posting.google.com>
Warren O. Merrill wrote:
> I want my record structures to byte align (for compatibility with
> existing files). I know about using the record representation clause
> to lay them out. I have a LOT of these to do and just wondering if
> any of the pragmas would be guaranteed to byte align my fields but NOT
> change the order of the fields to do it (NOTE THAT IS IMPORTANT!!!!!).
The only way to obtain a specific layout is to use a representation
clause. In fact, the only way to guarantee that the fields are stored in
the order they occur in the source is with a representation clause.
--
Jeff Carter
"Beyond 100,000 lines of code you
should probably be coding in Ada."
P. J. Plauger
26
next prev parent reply other threads:[~2004-11-18 0:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-18 0:20 What is correct way to pack records Warren O. Merrill
2004-11-18 0:27 ` Jeffrey Carter [this message]
2004-11-18 6:50 ` Martin Dowie
2004-11-18 12:37 ` Stephen Leake
2004-11-18 17:04 ` Marc A. Criley
2004-11-18 17:31 ` Jeffrey Carter
2004-11-18 18:00 ` Marc A. Criley
2004-11-19 3:08 ` Steve
2004-11-19 12:44 ` Frank J. Lhota
2004-11-19 13:28 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox