Changeset 8b6273a8 in rtems


Ignore:
Timestamp:
Nov 30, 2018, 3:03:25 PM (5 months ago)
Author:
Shashvat Jain <shashvatjain2002@…>
Branches:
master
Children:
8b3ca0c
Parents:
e54a266e
git-author:
Shashvat Jain <shashvatjain2002@…> (11/30/18 15:03:25)
git-committer:
Joel Sherrill <joel@…> (11/30/18 15:21:45)
Message:

powerpc/ss555: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

116512 1340 15400 133252 20884 ./base_sp.exe
246172 2328 18324 266824 41248 ./capture.exe
319368 3520 16496 339384 52db8 ./cdtest.exe

1077464 22428 23284 1123176 112368 ./cxx_iostream.exe

640632 4916 28408 673956 a48a4 ./fileio.exe
148844 1692 15572 166108 288dc ./hello.exe
328648 6252 22408 357308 573bc ./loopback.exe

95828 1196 12224 109248 1aac0 ./minimum.exe

145576 1872 15528 162976 27ca0 ./nsecs.exe
194932 2100 16172 213204 340d4 ./paranoia.exe
537060 12460 45124 594644 912d4 ./pppd.exe
119620 1380 15464 136464 21510 ./ticker.exe
119388 1324 19300 140012 222ec ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

235000 2336 16628 253964 3e00c ./cxx_iostream.exe
627252 4892 28108 660252 a131c ./fileio.exe
137648 1676 15528 154852 25ce4 ./hello.exe
308616 6236 22336 337188 52524 ./loopback.exe

89564 1180 12144 102888 191e8 ./minimum.exe

137184 1856 15432 154472 25b68 ./nsecs.exe
184264 2084 16144 202492 316fc ./paranoia.exe
520768 12440 45020 578228 8d2b4 ./pppd.exe
113260 1364 15356 129980 1fbbc ./ticker.exe
117236 1308 19272 137816 21a58 ./unlimited.exe
110584 1324 15308 127216 1f0f0 ./base_sp.exe
229172 2316 18288 249776 3cfb0 ./capture.exe
233980 2320 16436 252736 3db40 ./cdtest.exe

Closes #2563

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/ss555/config/ss555.cfg

    re54a266e r8b6273a8  
    2020CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
    2121
    22 # FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2563.
    2322# The following two lines enable compiling and linking on per element.
    24 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    25 # LDFLAGS = -Wl,--gc-sections
     23CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     24LDFLAGS = -Wl,--gc-sections
    2625
    2726define bsp-post-link
Note: See TracChangeset for help on using the changeset viewer.