Changeset 9c4dc7b0 in rtems for bsps


Ignore:
Timestamp:
Nov 28, 2018, 8:07:41 PM (11 months ago)
Author:
Shashvat Jain <shashvatjain2002@…>
Branches:
master
Children:
1fe6d11
Parents:
cc119eb
git-author:
Shashvat Jain <shashvatjain2002@…> (11/28/18 20:07:41)
git-committer:
Joel Sherrill <joel@…> (11/29/18 00:58:13)
Message:

m68k/mcf5225x:Add per-section compilation and linking support(GCI 2018)

The size of the sample executables without this option were:

text data bss dec hex filename

71984 1104 4080 77168 12d70 ./base_sp.exe

201872 2112 8944 212928 33fc0 ./capture.exe
104464 1472 4192 110128 1ae30 ./hello.exe
249584 5984 10864 266432 410c0 ./loopback.exe

40032 304 2768 43104 a860 ./minimum.exe
95360 1584 4208 101152 18b20 ./nsecs.exe

179760 1872 4816 186448 2d850 ./paranoia.exe
432912 12048 35568 480528 75510 ./pppd.exe

74992 1136 4112 80240 13970 ./ticker.exe
74832 1088 7952 83872 147a0 ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

67456 1104 4000 72560 11b70 ./base_sp.exe

188272 2096 8912 199280 30a70 ./capture.exe

95536 1472 4160 101168 18b30 ./hello.exe

233568 5984 10784 250336 3d1e0 ./loopback.exe

39264 304 2736 42304 a540 ./minimum.exe
89392 1584 4128 95104 17380 ./nsecs.exe

171120 1872 4784 177776 2b670 ./paranoia.exe
420336 12048 35488 467872 723a0 ./pppd.exe

70208 1136 4032 75376 12670 ./ticker.exe
73152 1088 7920 82160 140f0 ./unlimited.exe

Closes #2568

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/m68k/mcf5225x/config/mcf5225x.cfg

    rcc119eb r9c4dc7b0  
    1111
    1212#  This contains the compiler options necessary to select the CPU model
    13 #  and (hopefully) optimize for it. 
     13#  and (hopefully) optimize for it.
    1414CPU_CFLAGS = -mcpu=52235 $(PROJECT_FLAGS)
    1515
     
    1717CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
    1818
    19 # FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2568.
    2019# The following two lines enable compiling and linking on per element.
    21 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    22 # LDFLAGS = -Wl,--gc-sections
     20CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     21LDFLAGS = -Wl,--gc-sections
    2322
    2423# This defines the operations performed on the linked executable.
Note: See TracChangeset for help on using the changeset viewer.