This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

object file splitting for space optimization


hi,

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!  
-ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]