I'd like to know if anyone has any hints on identifying unused functions using the C166 compiler/linker. We have a large codebase shared between multiple projects and it would be beneficial to code size if we could remove functions from certain versions that are not being used.
"I'd like to know if anyone has any hints on identifying unused functions using the C166 compiler/linker." Not using the compiler/linker, but use the Code Browser in uVision, and sort by the number of "references" If the number of "references" is only one - then that's just a definition with no uses. (If the number of "references" is two, that could mean that it's defined, declared in a header, and then not further referenced). Job done - that'll be fifty quid, please.