We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Well, ... there is a compiler command line switch, "--split_sections", which causes it to put every function in its own section in the output object. If a function is not used the linker can then eliminate the whole section - which might work in your case.This *will* slow down your code, but might achieve what you want. If you want to fix the issue without the code slow down then see my first post about fixing the code - either via making functions static (and allowing internal optimization within the section), or by removing them from the compile completely. =)
You could just create and link with an additional C file/object that provides stubs for the non-existent functions your other C files are importing, e.g.int temp(void) { return 0; }int temp2(void) { return 0; }int temp3(void) { return 0; }hths.
int temp(void) { return 0; }int temp2(void) { return 0; }int temp3(void) { return 0; }