Message-ID: <37F38E65.49FED91C@maths.unine.ch> Date: Thu, 30 Sep 1999 17:23:01 +0100 From: Gautier X-Mailer: Mozilla 4.07C-SGI [en] (X11; I; IRIX64 6.5 IP30) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Linker trimming unused code/data References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: hilbert.unine.ch Lines: 12 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com (short version of e-mail exchange) > What unused data did you see? Unused strings constants. > Did you try linking with the -s switch, or running `strip' on the program > after it is linked? If not, please try that. Neither `ld -s' nor `strip' do trim the unused strings in my test. F.i.: the Borland Pascal linker does it, hence it trims the unused code that refers to them too. Of course it has a rich information about modularity. Gautier