make a script that can find all the unused variables, functions etc in the code. what's to it you say?
Use gcc's --unused-functions i hear? Well problem is we dont use gcc - soe modified version of it for our h/w platform, which does not support that option. So you see I fall back to some ever helpful guys:
- nm;
- objdump;
- grep;
- gawk;
- uniq; and
- cut
- generate a symbols file
- generate 2 assembly instruction file
- one contains all normal functions
- one contais even functions that we place on a "spl" RAM
Well cant help it now Can I?
I think a step ahead. How about a script that also adds "#if 0" to the source code? Well more work.
That shall come later if completed.
No comments:
Post a Comment