source: rtems/c/src/lib/libbsp/m68k/mvme167/make/custom/mvme167.cfg @ b54558ac

5
Last change on this file since b54558ac was f1df9844, checked in by Ralph Holmes <ralph@…>, on 01/23/16 at 02:07:35

m68k/mvme167: Add per-section compilation and linking support.

The size of the sample executables without this option were:

text data bss dec hex filename

142464 1648 12112 156224 26240 base_sp.exe
149936 1616 11712 163264 27dc0 hello.exe

78896 1184 8048 88128 15840 minimum.exe

591504 5552 23600 620656 97870 fileio.exe
161440 1728 12224 175392 2ad20 nsecs.exe
210240 2016 12720 224976 36ed0 paranoia.exe
146256 1648 12144 160048 27130 ticker.exe
144464 1664 15552 161680 27790 unlimited.exe
898944 21440 19200 939584 e5640 cxx_iostream.exe
241824 2064 12256 256144 3e890 cdtest.exe
236368 2144 13936 252448 3da20 capture.exe

The size of the sample executables with this option enabled were:

text data bss dec hex filename

134224 1600 12064 147888 241b0 base_sp.exe
140768 1552 11648 153968 25970 hello.exe

70592 1152 7984 79728 13770 minimum.exe

574528 5504 23264 603296 934a0 fileio.exe
154256 1696 12160 168112 290b0 nsecs.exe
201504 1984 12656 216144 34c50 paranoia.exe
138752 1600 12096 152448 25380 ticker.exe
135600 1616 15488 152704 25480 unlimited.exe
218080 2064 11904 232048 38a70 cxx_iostream.exe
225776 2000 12176 239952 3a950 cdtest.exe
225952 2080 13888 241920 3b100 capture.exe

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2#  Config file for the mvme167 BSP
3#
4
5# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES
6# ARE MADE TO THE LINKCMDS FILE.
7
8RTEMS_CPU=m68k
9RTEMS_CPU_MODEL=m68040
10
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13#  This contains the compiler options necessary to select the CPU model
14#  and (hopefully) optimize for it.  We also specify the BSP during compilation.
15#  This should really get its own flag, but it works here.
16#
17
18CPU_CFLAGS = -mcpu=68040
19
20
21# optimize flag: typically -O2
22CFLAGS_OPTIMIZE_V = -O2 -g -fno-omit-frame-pointer
23CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
24
25LDFLAGS = -Wl,--gc-sections
26
27# We use TFTP to transfer files to the MVME167. We generate binary files
28# rather than S-records. We skip the header during downloads.
29
30# The MC68040 does not implement all MC68881/MC68882 instructions, so use
31# either the gcc floating-point software support (msoft-float libraries), or
32# use the Motorola FPSP floating-point emulator in
33#   rtems/c/src/lib/libcpu/m68k/m68040/fpsp
34# The default is to use the FPSP.
35# To use the msoft-float libraries, uncomment the three lines below.
36# You then should comment the M68KFPSPInstallExceptionHandlers() statement
37# in rtems/c/src/lib/libbsp/m68k/mvme167/startup/bststart.c in bsp_start().
38# Floating-point support will then be limited. See the mvme167 README file
39# for more details.
40define bsp-post-link
41        $(default-bsp-post-link)
42    $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
43endef
Note: See TracBrowser for help on using the repository browser.