I used to use gcc -fdump-rtl-expand and -finstrument-functions to do function call tracing, does armcc has this kind of similar function?
For gcc, I use:
CFLAGS += -finstrument-functions -fdump-rtl-expand
Does armcc have similar compiler options? I tried the same ones, but it seems they do not work:
$ armcc -finstrument-functions test.c
Fatal error: C3900U: Unrecognized option '-finstrument-functions'.
$ armcc -fdump-rtl-expand test.c
Fatal error: C3900U: Unrecognized option '-fdump-rtl-expand'.
It appears that the option which allows
gccstyle instrumentation witharmccis different.Here is an extract from ARM Compiler Toolchain: Compiler Reference (You can access the reference at http://infocenter.arm.com, if you ‘register’ on their website):
As to the
-fdump-rtl-expandoption: I do not know (and do not think) thatarmccuses RTL internally. So I do not think obtaining the logs from the expand pass makes any sense here.