[PATCH 0/3] minimum.exe Size Reduction Patches

Joel Sherrill joel at rtems.org
Fri May 21 21:35:42 UTC 2021


This patch set is the culmination of the recent inquiry into why
some BSPs have a minimum.exe around 32K of text and others are 
twice that. This addresses two unnecessary dependencies that
resulted in ~25K reductions in minimum.exe for the jmr3904
and psim BSPs.

I plan to make a sweep in the near future of all BSPs to see if
there are reasons a specific BSP has a minimum.exe that is
larger than expected. I would eventually like to have a list
of some key symbols that minimum should not have in it. If we
had that for a few of the smaller tests, this would be helpful.

Joel Sherrill (3):
  ppc-irq-legacy.c: Use rtems_malloc() instead of malloc().
  powerpc/.../sbrk.c: Do not reference errno.
  sysinit: Do not open console when just referencing reentrancy
    structure.

 bsps/powerpc/shared/irq/ppc-irq-legacy.c  | 21 +++++++++++----------
 bsps/powerpc/shared/start/sbrk.c          | 14 ++++++++++++--
 cpukit/include/rtems/confdefs/iodrivers.h | 21 +++++++++++++++++++++
 cpukit/libcsupport/src/libio_init.c       |  6 ------
 4 files changed, 44 insertions(+), 18 deletions(-)

-- 
2.24.4



More information about the devel mailing list