[PATCH 3/3] powerpc/psim: Add per-section compilation and linking support

Gedare Bloom gedare at rtems.org
Wed Jan 6 01:59:28 UTC 2016


Do you have Tester results?

On Tue, Jan 5, 2016 at 6:34 PM, Joel Sherrill <joel at rtems.org> wrote:
> The size of the sample executables without this option were:
>
>  169644    2260 16605288        16777192         ffffe8 ticker.exe
>  125480    1984 16649712        16777176         ffffd8 minimum.exe
> 1009716  146443 15621024        16777183         ffffdf cxx_iostream.exe
>  691892    6218 16079064        16777174         ffffd6 fileio.exe
>  256048    2748 16518404        16777200         fffff0 capture.exe
>  195878    2348 16578964        16777190         ffffe6 nsecs.exe
>  205540    2620 16569020        16777180         ffffdc paranoia.exe
>  270988    9700 16496492        16777180         ffffdc cdtest.exe
>  166348    2252 16608584        16777184         ffffe0 base_sp.exe
>  168860    2252 16606076        16777188         ffffe4 unlimited.exe
>  152336    2108 16622740        16777184         ffffe0 hello.exe
>
> The size of the sample executables with this option enabled were:
>
>  127352    2216 16647628        16777196         ffffec ticker.exe
>   55584    1588 16720024        16777196         ffffec minimum.exe
>  647256   51050 16078868        16777174         ffffd6 cxx_iostream.exe
>  660264    6186 16110724        16777174         ffffd6 fileio.exe
>  233796    2680 16540712        16777188         ffffe4 capture.exe
>  154018    2304 16620856        16777178         ffffda nsecs.exe
>  185492    2592 16589108        16777192         ffffe8 paranoia.exe
>  240628    8396 16528176        16777200         fffff0 cdtest.exe
>  124088    2208 16650892        16777188         ffffe4 base_sp.exe
>  125404    2204 16649568        16777176         ffffd8 unlimited.exe
>  130696    2076 16644408        16777180         ffffdc hello.exe
> ---
>  c/src/lib/libbsp/powerpc/psim/make/custom/psim.cfg | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/c/src/lib/libbsp/powerpc/psim/make/custom/psim.cfg b/c/src/lib/libbsp/powerpc/psim/make/custom/psim.cfg
> index 86955e2..60bf3be 100644
> --- a/c/src/lib/libbsp/powerpc/psim/make/custom/psim.cfg
> +++ b/c/src/lib/libbsp/powerpc/psim/make/custom/psim.cfg
> @@ -13,3 +13,7 @@ CPU_CFLAGS = -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e
>
>  # optimize flag: typically -O2
>  CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
> +
> +# arguments to compile and link with per-element sections
> +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
> +LDFLAGS            = -Wl,--gc-sections
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list