source: rtems/c/src/lib/libbsp/powerpc/beatnik/make/custom/beatnik.cfg @ 3a84377

5
Last change on this file since 3a84377 was 3a84377, checked in by Ralph Holmes <ralph@…>, on 01/23/16 at 18:18:41

powerpc/beatnik: Add per-section compilation and linking support.

The size of the sample executables without this option were:

text data bss dec hex filename

221793 26856 14537 263186 40412 base_sp.exe
209281 25692 14497 249470 3ce7e hello.exe
202033 25072 11269 238374 3a326 minimum.exe
638049 94974 26821 759844 b9824 fileio.exe
243953 28604 14641 287198 461de nsecs.exe
254337 39408 15205 308950 4b6d6 paranoia.exe
224961 27024 14569 266554 4113a ticker.exe
224257 27792 18313 270362 4201a unlimited.exe
973889 215614 22173 1211676 127d1c cxx_iostream.exe
312369 45540 15209 373118 5b17e cdtest.exe
290177 37456 16361 343994 53fba capture.exe

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

text data bss dec hex filename

189633 22528 14517 226678 37576 base_sp.exe
175233 21388 14469 211090 33892 hello.exe
147265 19512 10949 177726 2b63e minimum.exe
595393 88650 26509 710552 ad798 fileio.exe
212561 24252 14621 251434 3d62a nsecs.exe
221953 35032 15181 272166 42726 paranoia.exe
193089 22696 14549 230334 383be ticker.exe
190561 23436 18285 232282 38b5a unlimited.exe
624149 52162 21361 697672 aa548 cxx_iostream.exe
280985 32516 15189 328690 503f2 cdtest.exe
256993 32928 16341 306262 4ac56 capture.exe

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#
2#  Config file for the PowerPC 745x based mvmexxxx
3#
4#
5
6include $(RTEMS_ROOT)/make/custom/default.cfg
7
8RTEMS_CPU=powerpc
9RTEMS_CPU_MODEL=mpc7455
10RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=beatnik
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18CPU_CFLAGS = -mcpu=7400 -D__ppc_generic
19#T. Straumann; disable sdata=eabi for now until CEXP supports it -meabi -msdata=eabi
20
21# optimize flag: typically -0, could use -O4 or -fast
22# -O4 is ok for RTEMS
23# NOTE: some level of -O may be actually required by inline assembler
24#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
25CFLAGS_OPTIMIZE_V = -O2 -g
26CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
27
28LDFLAGS = -Wl,--gc-sections
29
30# debug flags: typically none, but at least -O1 is required due to this
31# BSP using inlined code
32CFLAGS_DEBUG_V = -O1 -g
33
34define bsp-post-link
35        $(default-bsp-post-link)
36        $(OBJCOPY) -O binary $@ $(basename $@)$(DOWNEXT)
37endef
38
39# Miscellaneous additions go here
40START_BASE = motld_start
Note: See TracBrowser for help on using the repository browser.