delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/18/08:30:37

From: Waldemar Schultz <schultzma AT ma DOT tum DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MINGW vs DJGPP
Date: Wed, 18 Apr 2001 14:23:49 +0200
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 45
Message-ID: <3ADD8755.71826091@ma.tum.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010418141437 DOT 27491B-100000 AT is> <3ADD7C03 DOT ACF8938C AT ma DOT tum DOT de>
NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de
Mime-Version: 1.0
X-Trace: wsc10.lrz-muenchen.de 987596612 5758 131.159.68.151 (18 Apr 2001 12:23:32 GMT)
X-Complaints-To: news AT lrz-muenchen DOT de
NNTP-Posting-Date: 18 Apr 2001 12:23:32 GMT
X-Mailer: Mozilla 4.75 [de] (Win98; U)
X-Accept-Language: de,en-US
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Waldemar Schultz schrieb:
> 
> Eli Zaretskii schrieb:
> >
> > On Wed, 18 Apr 2001, Waldemar Schultz wrote:
> >
> > > BTW I couldn't resist to try the `-fpack-struct' switch Eli mentioned:
> > > now MINGW reports the size of the struct being _97_ vs _88_ without the
> > > switch.
> >
> > That sounds like a bug in MinGW.  What version of GCC is that?  Is the
> > version of GCC you use for DJGPP compilation different?
> 
> MINGW>gcc -v
> Reading specs from
> E:\MINGW\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\specs
> gcc version 2.95.2 19991024 (release)
> 
> DJGPP>gcc -v
> Reading specs from e:/djgpp/lib/gcc-lib/djgpp/2.952/specs
> gcc version 2.95.2 19991024 (release)
> 
> --
>  Gruss Waldemar Schultz.
>  Technische Universität München, Zentrum Mathematik M1, D 80290 München
>  Tel: +49 (0)89 2892 8226        FAX: +49 (0)89 2892 8228

sorry for replying to my own post.
I used gcc 2.95.3(20010315) and got these confusing results:

Compiler           switch          reported size of struct vp
djgpp gcc 2.95.2   -fpack-struct   80 eighty
djgpp gcc 2.95.3   -fpack-struct   79 seventynine
mingw gcc 2.95.2   -fpack-struct   79 seventynine
djgpp gcc 2.95.2                   80 eighty
djgpp gcc 2.95.3                   80 eighty
mingw gcc 2.95.2                   88 eightyeight

when manually added, the sum of the sizes of the struct members is _79_
.

-- 
 Gruss Waldemar Schultz.
 Technische Universität München, Zentrum Mathematik M1, D 80290 München
 Tel: +49 (0)89 2892 8226        FAX: +49 (0)89 2892 8228

- Raw text -


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