From 6a14ae56a34ab9e22a63c0372c7e6c5f11362dfb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Jan 1999 20:24:56 +0000 Subject: 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. --- make/custom/psim.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'make/custom') 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) -- cgit v1.2.3