9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] am I nuts? does 8c support packed structs?
@ 2004-10-22 15:26 Ronald G. Minnich
  2004-10-22 15:30 ` Russ Cox
  0 siblings, 1 reply; 20+ messages in thread
From: Ronald G. Minnich @ 2004-10-22 15:26 UTC (permalink / raw)
  To: 9fans



consider this: 

struct a {
	ulong x;
	long y;
	short z;
	};

in GCC, you can add attribute packed and that struct will be 10 bytes. I'm 
getting some static from the Xen guys because IIRC 8c does not support 
packed structs -- that struct on 8c is 12 bytes. 

Am I nuts? Is there some 8c pragma that can force this to be packed?

ron


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

end of thread, other threads:[~2004-10-22 21:13 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22 15:26 [9fans] am I nuts? does 8c support packed structs? Ronald G. Minnich
2004-10-22 15:30 ` Russ Cox
2004-10-22 15:49   ` C H Forsyth
2004-10-22 16:37     ` Ronald G. Minnich
2004-10-22 16:54       ` C H Forsyth
2004-10-22 21:13         ` Bruce Ellis
2004-10-22 21:00           ` Charles Forsyth
2004-10-22 16:51     ` Russ Cox
2004-10-22 17:27       ` Ronald G. Minnich
2004-10-22 17:20     ` Ronald G. Minnich
2004-10-22 17:28       ` Russ Cox
2004-10-22 17:30         ` Ronald G. Minnich
2004-10-22 17:29       ` jmk
2004-10-22 17:31         ` Ronald G. Minnich
2004-10-22 17:50           ` Brantley Coile
2004-10-22 18:32         ` C H Forsyth
2004-10-22 18:14       ` Charles Forsyth
2004-10-22 19:25       ` boyd, rounin
2004-10-22 19:35         ` Ronald G. Minnich
2004-10-22 19:38           ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).