Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!pasteur!pasteur.berkeley.edu!c184-bp From: c184-bp@rhombus.Berkeley.edu (Rick Braumoeller) Newsgroups: comp.sys.sgi Subject: Dead code elimination with ld? Message-ID: Date: 2 Jun 91 23:29:11 GMT Sender: news@pasteur.Berkeley.EDU Organization: CS Department Lines: 16 I would like to know if there is an option to make the MIPS code linker 'ld' perform dead-code elimination when linking. Currently, I am developing a program that uses the gl library, and a few others, and the resulting object code is over 800K. It's my guess that the linker is just chucking all of the object code together without checking to see what actually needs to be there, because I can't imagine I'm using that much of GL. Our man pages here are not very reliable, so I can't draw any conclusions from them. Can someone "in the know" straighten me out? I am using version 2.0 of cc and ld. - Rick Braumoeller University of California, Berkeley