delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/27/06:30:40

Date: Tue, 27 Sep 94 02:18:20 EDT
From: dliu AT faraday-gw DOT njit DOT edu (Dong Liu)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Huge library?
Mailer: VM 5.32 (beta) for GNU Emacs 18.59.5

I try to compile turbovision by gcc with minimum sucess, but the problem
is I got a huge lib and a.out file. The size of tv.lib compiled by TC++
is 393,216 bytes, but the libtv.a compiled by gcc is 1,983,850 bytes. A
simple "hello" program has 1,140,930 bytes.

I found the problem is not gcc produce huge code, because when stripped
the "hello" program, its size reduced to 379,060 bytes, so almost 2/3 of
the object file is symbol table, but the problem is I did NOT use "-g".
Also it took a long time to run "ld" when the lib file is huge. Is there
any solution to this?

Thanks,

Dong

- Raw text -


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