Sat Jun 11 18:01:52 CEST 2011

Know your linker: how to avoid unused functions to end up in a binary.

Use the CFLAGS

  -ffunction-sections -fdata-sections

which will put functions in their own sections.  Together with the
linker option


unused sections (functions or data) will be removed.  The only
downside is that using separate sections requires more space due to