#34 CFlags and LFlags to remove unused functions from obj

open
5
2013-10-08
2009-07-23
Anonymous
No

Use
CFLAGS += -fno-inline-small-functions
CFLAGS += -ffunction-sections
CFLAGS += -fdata-sections
and
LDFLAGS += -Wl,--relax
LDFLAGS += -Wl,--gc-sections
as standard or maybe as option, because that will remove unused functions from code.

Discussion

  • Matthew McDougal

    reassigning to current maintainer

     
  • Kees Bakker

    Kees Bakker - 2013-10-08

    This is implementated as checkboxes (default on) in the compiler and linker dialogs.

     
  • Kees Bakker

    Kees Bakker - 2013-10-08

    The -fno-inline-small-functions has not been added (yet)

     

Log in to post a comment.