Binary is twice bigger

Leon Pollak leonp at
Tue Dec 23 12:39:19 UTC 2003

On Tuesday 23 December 2003 14:25, you wrote:
> > * The Linker does a real good job of dead-stripping code
> GCC can do it as well:
> during compilation: -ffunction-sections
> during link: -Wl,--gc-sections
This is what "info gcc" says about -ffunction-sections:
Only use these options when there are significant benefits from
doing so.  When you specify these options, the assembler and
linker will create larger object and executable files and will
also be slower.
The increasing of object file is obvious, but why the executable may increase?
And why the executable will be slower!?

It seems to be problematic, no?

Leon M.Pollak
leonp at plris dot com

More information about the users mailing list