Binaries compiled with GCC 3.2-3 much bigger than with 2.95.3-10?
Frédéric L. W. Meunier
Fri Sep 5 22:13:00 GMT 2003
Answering 2 in 1.
On Fri, 5 Sep 2003, Wayne wrote:
> There have been discussions on various forums about increased
> executable size and in particular, compile time, pretty much
> since gcc-3.1 was in beta. Exe will be bigger than 2-95, even
> after stripping.
I agree that even on Linux this is usually the case, but not
with lndir. 3.2.3 and 3.3.1 produced smaller binaries, while
3.2-3 doubled the size on Cygwin.
Lapo Luchini wrote:
> Did you "strip" the executable produced? AFAIK gcc3 has much
> more "debug" infos, but once stripped should be of a similiar
Yes, and I also used strip on Cygwin to see it -Wl,-s was
really working. The Makefile is like:
CC = gcc
CFLAGS = -O2 -pipe -Wall
LDFLAGS = -Wl,-s
INCLUDE = -I.
$(CC) $(CFLAGS) $(INCLUDE) -o lndir $(LDFLAGS) lndir.c
I just did
$ make LDFLAGS=
$ make CFLAGS='-Os -pipe -Wall'
$ make CFLAGS='-Os -pipe -Wall' LDFLAGS=
$ make CC=gcc-2
and so on. Anyway, I'll later compile other things to see it
the size changes that much. I was just impressed by the
difference since 3.2-3 on Cygwin is supposed to work like 3.x
on Linux, or not ?
How to contact me - http://www.pervalidus.net/contact.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin