delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1226 |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!tank.news.pipex.net!pipex!news.mathworks.com!uunet!in1.uu.net!olivea!charnel.ecst.csuchico.edu!csusac!csus.edu!news.ucdavis.edu!wheel!elric |
From: | elric AT wheel DOT dcn DOT davis DOT ca DOT us (Jeffrey Taylor) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: GCC/DJGPP Weirdness (structure padding stuff) |
Date: | 28 Jul 1995 18:00:07 GMT |
Organization: | Davis Community Network - Davis, California, USA |
Lines: | 16 |
References: | <DCFFCA DOT Ev3 AT jade DOT mv DOT net> |
Nntp-Posting-Host: | wheel.dcn.davis.ca.us |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
A.Appleyard (A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk) wrote: : 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). Because on many PCs, reading a 16-bit word on an odd address takes longer. -- ===================================== Jeff T "Blues with a feeling... =====================================
webmaster | delorie software privacy |
Copyright � 2019 by DJ Delorie | Updated Jul 2019 |