www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/22/01:49:24

Date: Thu, 22 Aug 1996 08:39:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: mila AT polbox DOT com DOT pl
Cc: djgpp AT delorie DOT com
Subject: Re: sizeof(long double)
In-Reply-To: <199608211654.MAA13222@delorie.com>
Message-Id: <Pine.SUN.3.91.960822083643.2237M-100000@is>
Mime-Version: 1.0

On 21 Aug 1996 mila AT polbox DOT com DOT pl wrote:

> My question is:why the 'long double' type is 12 bytes long
> even if ((packed)) attribute is specified?
> My tests show (may be I am wrong...), that last 2 bytes
> of 12 bytes long doubles in djgpp are unused !!!
> So, why long doubles are not 10 bytes long (like in TC)?

They are 10 bytes AFAIK, but if you measure the size in a struct, it 
might be that GCC pads the struct at the end.  Please post a small code 
fragment that exhibits this problem, because the padding issue may be 
tricky and is very hard to reflect upon without seeing actual code.

- Raw text -


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