RFC: Using per function sections

Matt Wette mwette at alumni.caltech.edu
Fri Apr 12 00:37:42 UTC 2013


I'm guessing this is "gcc -ffunction-sections".   Can the sections be padded?
The use case is  updating functions (in flash) and not entire s/w.  
(This was used on a project at work and worked for limited bandwidth to the computer.)

On Apr 11, 2013, at 2:59 PM, Joel Sherrill wrote:

> Hi
> 
> After Anthony Green commented how much code space was
> saved by using per function sections, I have been doing some
> experimenting on a few targets.  My impression is:
> 
> + Some tests drop > 50% in size
> + Most drop 20-30%
> + Minimum drop is ~10%
> + Even a well tuned size constrained BSP like the lpc23xx_tli800
>   saw 6-9% minimum improvements. At least one test fit into
>   memory which did not before hand.
> 
> PowerPC and ARM appear to work great. SPARC/sis resulted in 80
> byte .text sections.
> 
> I would like to know if there is general interest in using these
> options across all BSPs where it works.  And investigating those
> which do not.
> 
> -- 
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel.sherrill at OARcorp.com        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users





More information about the users mailing list