This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated experimental package: gcc4-4.3.2-1


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]