www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/28/08:43:01

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Fri, 28 Jul 1995 11:11:53 BST
Subject: Re: GCC/DJGPP Weirdness (structure padding stuff)

  ghogenso AT u DOT washington DOT edu (Gordon Hogenson) wrote:-
> BTW, there is a new option in gcc 2.7.0: -fpack-struct (or something
> similar) which causes all structs to be packed, with no messing about with
> attributes!

Why not pack structs etc anyway by default? On a PC, (rounding every member's
width to a multiple of 2 or 4 bytes) achieves nothing except wasting store and
annoying people who want to make a struct match some assembly-coded table (as
e.g. when calling some interrupts).

- Raw text -


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