I'm attempting to add instrumenting/profiling calls to C source. Many compilers I have found have flags that let you do this (--gnu_instrument, -finsturment-functions, etc). Then you provide the definitions for the inserted function calls. From there you can do cool stuff with the resulting call graph and whatever metrics you decide to pull from the profiling calls.
I'm however needing to instrument code compiled with ADS 1.2
(source is built with \ARM\ADSv1_2\Bin\armcc.exe)
To be honest this compiler feels quite old to me and I'm having trouble finding much useful information. What I really want is just an entirely complete list of compiler options to check through, but I must be missing it. (The linked docs feels incomplete as far as options go)
I did stumble upon using -instrument as an option which, while giving no errors (when an obviously bad flags does, -asdf), has no effect on the generated assembly when using -S. But I haven't been able to find -instrument in any docs or help menus so I could just be using it incorrectly. Or I suppose it could be a feature that was dropped but still lets you compile without errors, I really have no idea.
If anyone has experience with this compiler or is just a better Google-er any help would be appreciated