Changeset 1fe6d11 in rtems


Ignore:
Timestamp:
Nov 28, 2018, 5:53:36 PM (8 months ago)
Author:
Shashvat Jain <shashvatjain2002@…>
Branches:
master
Children:
1d78d66
Parents:
9c4dc7b0
git-author:
Shashvat Jain <shashvatjain2002@…> (11/28/18 17:53:36)
git-committer:
Joel Sherrill <joel@…> (11/29/18 15:15:12)
Message:

m68k/mcf52235: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

69776 1104 4080 74960 124d0 ./base_sp.exe

103376 1472 4192 109040 1a9f0 ./hello.exe

37808 304 2768 40880 9fb0 ./minimum.exe
93152 1584 4208 98944 18280 ./nsecs.exe
72784 1136 4112 78032 130d0 ./ticker.exe
72608 1088 7952 81648 13ef0 ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

65120 1104 4000 70224 11250 ./base_sp.exe
94448 1472 4160 100080 186f0 ./hello.exe
36928 304 2736 39968 9c20 ./minimum.exe
87072 1584 4128 92784 16a70 ./nsecs.exe
67888 1136 4032 73056 11d60 ./ticker.exe
70816 1088 7920 79824 137d0 ./unlimited.exe

Closes #2570

File:
1 edited

Legend:

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

    r9c4dc7b0 r1fe6d11  
    88
    99#  This contains the compiler options necessary to select the CPU model
    10 #  and (hopefully) optimize for it. 
     10#  and (hopefully) optimize for it.
    1111CPU_CFLAGS = -mcpu=52235
    1212
     
    1616# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2570.
    1717# The following two lines enable compiling and linking on per element.
    18 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    19 # LDFLAGS = -Wl,--gc-sections
     18CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     19LDFLAGS = -Wl,--gc-sections
    2020
    2121# This defines the operations performed on the linked executable.
Note: See TracChangeset for help on using the changeset viewer.