Mail Archives: djgpp/1996/08/22/01:49:24
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 -