Date: Thu, 22 Aug 1996 08:39:50 +0200 (IST) From: Eli Zaretskii 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: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.