Re: compiled / linked binary file is too large on solaris 8 for x86 and gnome2?
- From: Mohammed Sameer <Uniball gmx net>
- To: gtk-app-devel-list gnome org
- Subject: Re: compiled / linked binary file is too large on solaris 8 for x86 and gnome2?
- Date: Thu, 26 Dec 2002 07:33:16 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My Inbox Happily Received This From chen.shengqi @ Thu, 26 Dec 2002 12:19:29 +0800
Dear sirs:
I'm using gcc 3.2 on solaris8 for x86 , installed gnome 1.4/2, I found that each compiled binary is
about 300k if source include gnome.h and so, and after link it, the binary execute file is very large if
multi source file in application. for example: my application using gnome 2 have 17 *.c files,the linked
file is 5.4M, and I build glimmer on gnome 1.4, glimmer size is 13M ,what parameters should add to
compile and link it?
thanks.
Try stripping the binary
$ gcc -o text text.c `pkg-config gtk+-2.0 --cflags --libs`
[mohammed localhost misc]$ ls -lh text
- -rwxrwxr-x 1 mohammed mohammed 15K Dec 26 07:32 text*
[mohammed localhost misc]$ strip text
[mohammed localhost misc]$ ls -lh text
- -rwxrwxr-x 1 mohammed mohammed 6.1K Dec 26 07:32 text*
- --
- ----------------
- -- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST make it run, THEN make it run fast "Brian Kernighan".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+CpSby2aOKaP9DfcRAizyAJ0ZPrT2y53rxFrgcjvUkAK2tRniRQCgxM8t
tvBDPiuX5Z+e10hKq8X07f0=
=BOnF
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]