delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/09/12:15:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48EE2DB3.8020109@alice.it>
Date: Thu, 09 Oct 2008 18:13:39 +0200
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: dave DOT korn AT artimi DOT com
Subject: Re: [ANNOUNCEMENT] Updated experimental package: gcc4-4.3.2-1
References: <48CD8D8A DOT 2050900 AT alice DOT it>
In-Reply-To: <48CD8D8A.2050900@alice.it>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

When I build this test case

$ cat hello.F95
!
! hello.F95
!
program hello
   ! implicit none
!   integer :: i
!   print *, 'i = '
!   read *,i
!   print *,i
   print *,'Hello World!'
end program hello

with gfortran-4 from gcc-4 package

    $ gfortran-4.exe hello.F95 -o hello_cyg

I obtain a file, hello_cyg.exe, of 381598 bytes.

If I use the build of gfortran I did at the end of August, when
GCC-4.3.2 was released [1], the result is

    $ gfortran hello.F95 -o hello_my

with hello_my.exe of 133075 bytes!

And

    $ objdump -h hello_cyg.exe

hello_cyg.exe:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         000133a0  00401000  00401000  00000400  2**4
                   CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
   1 .data         00000220  00415000  00415000  00013800  2**5
                   CONTENTS, ALLOC, LOAD, DATA
   2 .rdata        000040f8  00416000  00416000  00013c00  2**5
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
   3 .bss          00000a10  0041b000  0041b000  00000000  2**3
                   ALLOC
   4 .idata        000007cc  0041c000  0041c000  00017e00  2**2
                   CONTENTS, ALLOC, LOAD, DATA
   5 .debug_aranges 000002a0  0041d000  0041d000  00018600  2**3
                   CONTENTS, READONLY, DEBUGGING
   6 .debug_pubnames 00000c48  0041e000  0041e000  00018a00  2**0
                   CONTENTS, READONLY, DEBUGGING
   7 .debug_info   0001e03f  0041f000  0041f000  00019800  2**0
                   CONTENTS, READONLY, DEBUGGING
   8 .debug_abbrev 000031c0  0043e000  0043e000  00037a00  2**0
                   CONTENTS, READONLY, DEBUGGING
   9 .debug_line   00005776  00442000  00442000  0003ac00  2**0
                   CONTENTS, READONLY, DEBUGGING
  10 .debug_frame  00001fc8  00448000  00448000  00040400  2**2
                   CONTENTS, READONLY, DEBUGGING
  11 .debug_str    00000818  0044a000  0044a000  00042400  2**0
                   CONTENTS, READONLY, DEBUGGING
  12 .debug_loc    0000f3f7  0044b000  0044b000  00042e00  2**0
                   CONTENTS, READONLY, DEBUGGING
  13 .debug_ranges 00001480  0045b000  0045b000  00052200  2**0
                   CONTENTS, READONLY, DEBUGGING

instead with 'my'

    $ objdump -h hello_my.exe

hello_my.exe:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00013a70  00401000  00401000  00000400  2**4
                   CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
   1 .data         00000220  00415000  00415000  00014000  2**5
                   CONTENTS, ALLOC, LOAD, DATA
   2 .rdata        00004074  00416000  00416000  00014400  2**5
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
   3 .bss          000009e8  0041b000  0041b000  00000000  2**3
                   ALLOC
   4 .idata        00000750  0041c000  0041c000  00018600  2**2
                   CONTENTS, ALLOC, LOAD, DATA
		
Obviously, stripping hello_cyg.exe gives a file of only 99840 bytes!

It seems that gcc-4 uses '-g' even when it is not given on command
line!!!

IS THIS true?
Is there some problem here?


Cheers,
    Angelo.

---
[1] Only c,fortran:
$ gfortran -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /work/gcc-4.3.2/configure --prefix=/usr/local/gfortran
--exec-prefix=/usr/local/gfortran --sysconfdir=/usr/local/gfortran/etc
--libdir=/usr/local/gfortran/lib --libexecdir=/usr/local/gfortran/lib
--mandir=/usr/local/gfortran/share/man
--infodir=/usr/local/gfortran/share/info --enable-languages=c,fortran
--enable-bootstrap --enable-decimal-float=bid --enable-libgomp
--enable-threads --enable-sjlj-exceptions
--enable-version-specific-runtime-libs --enable-nls
--enable-checking=release --disable-fixed-point --disable-libmudflap
--disable-shared --disable-win32-registry --with-system-zlib
--without-included-gettext --without-x
Thread model: posix
gcc version 4.3.2 (GCC)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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