Executable size

Leon Pollak leonp at plris.com
Wed Dec 23 17:46:14 UTC 2009


Thanks for your responses.
Below is the more detailed study.

1. Joel, you are right - the optimized version of application and RTEMS is 
even a bit smaller (about 5%).

2. Debug version (of application & RTEMS) still is 4 times bigger.
This is the 'size' report for 4.8.0:
  text    data     bss     dec     hex filename
1093064   20092  298832 1411988  158b94 VDTS

And this is the 'size' for 4.9.3:
   text    data     bss     dec     hex filename
4050468   14405  298224 4363097  429359 VDTS

All the compilation parameters are exactly the same for both cases, except 
that RTEMS IN BOTH CASES(!) is compiled for debug with:
CFLAGS_OPTIMIZE_V=-O0 -g -ggdb -fkeep-inline-functions
for optimized with:
CFLAGS_OPTIMIZE_V=-O4 -g -ggdb -fno-keep-inline-functions

Thanks again.
-- 
Leon



More information about the users mailing list