I would like to delete no-reference methods on "*.lib" because optimizing ROM size. I tried to apply "[Target]->[cross-module optimization]" as true. But no-reference methods were not deleted. Why?
Please tell me how to delete no-reference methods on "*.lib".
Libraries tend to operate at a different level. To assist the dead code elimination, try to create .o objects that contain singular functions, and combine those into .a libraries. Be sure also to check the "One ELF Section per Function" in the code generation options.
Hi, Westonsupermare
Thank you! Your advice have given me a good result. Steps I tried are. Step1: Create "*.lib" is given "One ELF Section per Function". Step2: Build another master project which included "*.lib". -> ELF sections of no-reference method on Library was deleted from master hex.