summaryrefslogtreecommitdiffstats
path: root/make/custom
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-19 20:24:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-19 20:24:56 +0000
commit6a14ae56a34ab9e22a63c0372c7e6c5f11362dfb (patch)
tree87343cbbc3d65027639801bc53b24054fe32e6e9 /make/custom
parentChanged definition of ASMFLAGS since as does not recognize -B option (diff)
downloadrtems-6a14ae56a34ab9e22a63c0372c7e6c5f11362dfb.tar.bz2
Added comments to indicate what options are required to take advantage
of removal of unused function code found in newer binutils/egcs snapshots. Early test with psim and hello.exe showed about a 13% gain.
Diffstat (limited to 'make/custom')
-rw-r--r--make/custom/psim.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/make/custom/psim.cfg b/make/custom/psim.cfg
index 9a6ce2e5aa..32f1e0e365 100644
--- a/make/custom/psim.cfg
+++ b/make/custom/psim.cfg
@@ -71,7 +71,8 @@ endef
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=603
+CPU_CFLAGS = -mcpu=603
+#-ffunction-sections
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -104,6 +105,7 @@ define make-exe
$(SIZE) $@
endef
else
+# -Wl,--gc-sections
define make-exe
$(CC) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)