Changeset ffe9e7a in rtems


Ignore:
Timestamp:
Nov 25, 2018, 7:37:01 AM (8 months ago)
Author:
Shashvat Jain <shashvatjain2002@…>
Branches:
master
Children:
16d5e394
Parents:
1b2124d
git-author:
Shashvat Jain <shashvatjain2002@…> (11/25/18 07:37:01)
git-committer:
Joel Sherrill <joel@…> (11/25/18 15:29:08)
Message:

m68k/gen68360:Add per-section compilation and linking support

The size of the sample executables without this option were:

text data bss dec hex filename

76560 1200 19504 97264 17bf0 ./base_sp.exe

191776 2160 22448 216384 34d40 ./capture.exe
243760 2976 20496 267232 413e0 ./cdtest.exe
827184 21872 26928 875984 d5dd0 ./cxx_iostream.exe
532960 4688 31904 569552 8b0d0 ./fileio.exe

97888 1472 19360 118720 1cfc0 ./hello.exe

250368 6080 26272 282720 45060 ./loopback.exe

34336 304 15056 49696 c220 ./minimum.exe
99840 1680 19616 121136 1d930 ./nsecs.exe

185936 1968 20240 208144 32d10 ./paranoia.exe
414992 12096 49072 476160 74400 ./pppd.exe

79472 1232 19536 100240 18790 ./ticker.exe
66368 1088 23120 90576 161d0 ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

59200 1120 19136 79456 13660 ./base_sp.exe

178912 2160 22400 203472 31ad0 ./capture.exe
163712 2112 20160 185984 2d680 ./cdtest.exe
163696 2192 20352 186240 2d780 ./cxx_iostream.exe
521344 4672 31584 557600 88220 ./fileio.exe

89600 1472 19328 110400 1af40 ./hello.exe

222384 5984 25920 254288 3e150 ./loopback.exe

33728 304 15024 49056 bfa0 ./minimum.exe
81280 1584 19248 102112 18ee0 ./nsecs.exe

164960 1872 19904 186736 2d970 ./paranoia.exe
402928 12096 48992 464016 71490 ./pppd.exe

62112 1136 19168 82416 141f0 ./ticker.exe
64864 1072 23088 89024 15bc0 ./unlimited.exe

Closes #2566.

Location:
bsps/m68k/gen68360/config
Files:
3 edited

Legend:

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

    r1b2124d rffe9e7a  
    1 # 
     1#
    22#  Config file for a "generic 68360" BSP
    33
     
    1212# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566.
    1313# The following two lines enable compiling and linking on per element.
    14 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    15 # LDFLAGS = -Wl,--gc-sections
     14CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     15LDFLAGS = -Wl,--gc-sections
  • bsps/m68k/gen68360/config/gen68360_040.cfg

    r1b2124d rffe9e7a  
    1313# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566.
    1414# The following two lines enable compiling and linking on per element.
    15 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    16 # LDFLAGS = -Wl,--gc-sections
     15CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     16LDFLAGS = -Wl,--gc-sections
  • bsps/m68k/gen68360/config/pgh360.cfg

    r1b2124d rffe9e7a  
    1 # 
     1#
    22#  Config file for a "generic 68360" BSP
    33
     
    1212# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2566.
    1313# The following two lines enable compiling and linking on per element.
    14 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    15 # LDFLAGS = -Wl,--gc-sections
     14CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     15LDFLAGS = -Wl,--gc-sections
Note: See TracChangeset for help on using the changeset viewer.