This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Well, that was a trivial testcase, as you said. In real life I have a lot of .c files with generic functions, but not all of them are used by all binaries I build. So I search for a way to clean out unused functions between modules, if possible.This testcase may not be actually showing you what you want. You have to balance the extra overhead of having a section for each function against the savings, and in this case the function being removed is completely trivial. When you're looking at a 2800 byte ELF file the noise (headers, padding, etc) is going to overwhelm everything. Try a more realistic testcase.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |