Also on -funit-at-a-time...
Rob Landley
rob at landley.net
Thu Oct 6 20:18:13 UTC 2005
On Thursday 06 October 2005 14:47, David Daney wrote:
> Rob Landley wrote:
> > To get the most out of recent gcc's, it's best to compile more than one c
> > file at a time:
> >
> > http://gccsdk.riscos.info/mail-archive/gcc/2004/2797.html
> >
> > More or less having gcc create the .a files straight from the .c files in
> > one gulp. I've done this and even with gcc 3.3 it produces smaller
> > resulting binaries.
>
> If there are any unused functions or data, you can win by using
> -ffunction-sections -fdata-sections -Wl,--gc-sections as well. This
> allows the linker to eliminate any unreferenced code or data. However
> you need very recent binutils to make it work.
How recent?
It's possible that for 1.1 we can specify a minimum toolset. (Not that we
won't _compile_ with other stuff, but we do need a target to optimize for.)
Rob
More information about the busybox
mailing list