delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/15/06:15:23

From: jeffdbREMOVETHIS AT goodnet DOT com (Mikey)
Subject: Re: structure packing/allingment
15 May 1998 06:15:23 -0700 :
Message-ID: <355bff01.16692682.cygnus.cygwin32.developers@smtp.goodnet.com>
References: <9804300514 DOT AA10682 AT modi DOT xraylith DOT wisc DOT edu>
Reply-To: jeffdbREMOVETHIS AT goodnet DOT com
Mime-Version: 1.0
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>, cygwin32-developers AT cygnus DOT com

Would this be better than -m486 to get 8 byte default struct alignment?
and more importantly would it break anything else?
(dosen't seem to, but I'm not a gcc guru :)

#define DATA_ALIGNMENT(TYPE, ALIGN)		\
  ((TREE_CODE (TYPE) == RECORD_TYPE		\
   || TREE_CODE(TYPE) == UNION_TYPE		\
   || TREE_CODE(TYPE) == QUAL_UNION_TYPE)	\
   && TYPE_FIELDS (TYPE) != 0			\
   && !TYPE_PACKED (TYPE)			\
   && !DECL_PACKED (TYPE)			\
   && (ALIGN) < 64 ? 64 : (ALIGN))

=====================================================
Linux a platform built by, and for users, standing on
the firm legs of reliability, and speed.

Microsoft Windows, a platform without a leg to stand on.

(jeffdbREMOVETHIS AT goodnet DOT com)
delete REMOVETHIS from the above to reply
         Mikey

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019