Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Data structure alignment question
@ 2003-03-20  0:36 Marc S. Gibian
  2003-03-20 16:59 ` Brian Haley
  2003-03-20 19:55 ` David Konerding
  0 siblings, 2 replies; 7+ messages in thread
From: Marc S. Gibian @ 2003-03-20  0:36 UTC (permalink / raw)


I am porting a program that runs on a number of other Unix/Linux
platforms to Tru64 5.1, GCC 3.2.2. This program interchanges messages
via sockets with other systems. Thus, the data alignment in
structures/classes is critical. To my surprise, I find that my data is
begin laid out more compactly than on the other platforms. It seems
like there must be a pragma or other mechanism within GCC that would
allow me to instruct the compiler to align the data on long word (32
bit) boundries. If not, I'm going to be stuck adding pad fields to a
non-trival set of structures.

Thanks in advance for your help,
Marc


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-16  1:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-20  0:36 Data structure alignment question Marc S. Gibian
2003-03-20 16:59 ` Brian Haley
2003-03-20 19:55 ` David Konerding
2003-03-21 20:48   ` Marc S. Gibian
2003-03-21 23:21     ` David Konerding
2003-03-24 19:49       ` Marc S. Gibian
2003-04-16  1:05         ` Marc S. Gibian

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