This is the mail archive of the
mailing list for the GCC project.
object file splitting for space optimization
- To: gcc at gcc dot gnu dot org
- Subject: object file splitting for space optimization
- From: Ian Thompson <iant at CS dot Stanford dot EDU>
- Date: Mon, 29 Jan 2001 12:53:26 -0800 (PST)
i have an object file that is a little over 1k in size, but i'm only using
one function in it (which is maybe 100 bytes). the problem is -- how can
i link in that object file but have the extra code removed? i've tried
using the -Os flag, which didn't help much. the problem can easily be
solved with ifdefs or manually splitting up the object, but i was
wondering if there was a more elegant way to do it. i'm using gcc 2.96
and cross-compiling for 32-bit mips.
thanks for your help!