This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -ffunction-sections and -fdata-sections documentation
>> It places each function and each datum into a separate section, which
>> can be placed or removed independently. It is not combining data or
>> altering the order of structures. It allows the linker to position
>> functions and data items as individual components instead of a single
>> object file "text" or "data" blobs.
>
> Is the optimization opportunity described by Jeff (which is prevented by the use of function and data sections) similar to moving all distinct objects into one compiler generated structure?
No.
- David