object file splitting for space optimization
Ian Thompson
iant@CS.Stanford.EDU
Mon Jan 29 12:52:00 GMT 2001
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
More information about the Gcc
mailing list