Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

We use RVDS 3.0 for generating a mod file from source code.
I want to know meaning of following options -
One ELF section per function command line equivalent is --split_sections
What happens when we enable this option while generating mod file?
How enabling and disabling this option effects performance of the application?
I noticed that if we do not enable this option mod size increases (around 10% of its original size).:rolleyes:
What would be the reason behind this?

This option tells the compiler to put all functions into their own individual ELF sections. This allows the linker to remove unused functions.
The linker is generally only able to remove unused ELF sections and not unused functions. An ELF section can only be removed if all its contents are unused. So splitting each function into its own ELF section allows the compiler to easily identify which ones are unused and remove them.
Enabling this option increases the time required to compile your code, but results in improved performance.

This option tells the compiler to put all functions into their own individual ELF sections. This allows the linker to remove unused functions.
The linker is generally only able to remove unused ELF sections and not unused functions. An ELF section can only be removed if all its contents are unused. So splitting each function into its own ELF section allows the compiler to easily identify which ones are unused and remove them.
Enabling this option increases the time required to compile your code, but results in improved performance.