delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/14/03:15:36

Xref: news2.mv.net comp.os.msdos.djgpp:3818
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: more sizeof questions
Date: Mon, 13 May 1996 19:35:38 -0700
Organization: Alcyone Systems
Lines: 19
Message-ID: <3197F17A.B84B831@alcyone.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960513084045 DOT 27468I-100000 AT is>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote:

> The way you tell the compiler to pack structs is inherently
> compiler-dependent.  AFAIK, there is no standard on how this is done . . .

Yes.  ANSI makes absolutely no guarantee on struct padding.

> . . . so
> you must address every supported compiler in the way it understands.

And, furthermore, you have no guarantee whatsoever that the compiler you're
using allows you to specify no padding at all.

-- 
Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max AT alcyone DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


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