From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: GDB and extended type Date: Tue, 18 Nov 1997 13:37:15 +0100 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 28 Message-ID: <34718BFB.D4C245D@LSTM.Ruhr-UNI-Bochum.De> References: <199711180544 DOT VAA11183 AT adit DOT ap DOT net> <64rp1e$1s5 AT news DOT u-strasbg DOT fr> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Pierre Muller wrote: [...] > Anyway I changed the size of long double to 10 bytes > my EXTENDED type defined by the compiler is also 10 bytes long > but I still don't get the values printed out. > > debugging GDB with itself and setting a breakpoint at extract_floating > I saw that sizeof(DOUBLEST) is 12 instead of 10, > but I have no idea from were this comes from !! Just a wild guess: Memory alignment. Variables are aligned to a 4 Byte boundary, so if you use an extended in a struct, it eats 12 Bytes. -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * ************************************************************* : +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************