[RFC] Add compiler flags to discard unused functions

2010-10-01 Thread Lucas De Marchi
Request compiler to emit every function and data variable in its own section, then request the linker to remove unused sections. This reduces the size of the final binary. Compiling with --disable-iwmx, we have the following results: Before: === textdata bss dec hex

Re: [RFC] Add compiler flags to discard unused functions

2010-10-01 Thread Gustavo Sverzut Barbieri
On Friday, October 1, 2010, Lucas De Marchi lucas.demar...@profusion.mobi wrote: Request compiler to emit every function and data variable in its own section, then request the linker to remove unused sections. This reduces the size of the final binary. Compiling with --disable-iwmx, we have the