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.
This commit is contained in:
Joel Sherrill
1999-01-19 20:24:56 +00:00
parent 7d0dbf1a6c
commit 6a14ae56a3

View File

@@ -71,7 +71,8 @@ endef
# This contains the compiler options necessary to select the CPU model # This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it. # and (hopefully) optimize for it.
# #
CPU_CFLAGS = -mcpu=603 CPU_CFLAGS = -mcpu=603
#-ffunction-sections
# optimize flag: typically -0, could use -O4 or -fast # optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS # -O4 is ok for RTEMS
@@ -104,6 +105,7 @@ define make-exe
$(SIZE) $@ $(SIZE) $@
endef endef
else else
# -Wl,--gc-sections
define make-exe define make-exe
$(CC) $(CFLAGS) -o $(basename $@).exe \ $(CC) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS) $(LINK_OBJS) $(LINK_LIBS)