I'd like to generate assembly file for a corresponding .c file and I've tried the following which do not work.
armcc.exe -c test.c -o test.o fromelf.exe -c test.o -o test.s
The above generates test.s but it does not have assembly code for any of the functions defined in the test.c file. I'm looking something similar to
objdump -d test.o
Environment
$ armcc.exe --help Product: ARM Compiler 5.06 Component: ARM Compiler 5.06 update 6 (build 750) Tool: armcc [4d3637] $ armcc.exe --save-temps test.c -o test Fatal error: C3900U: Unrecognized option '--save-temps'.
Seems the armcc version that I have does not have such a flag.
Okey. Probably my bad. I''m using Linaro GCC toolchain https://www.linaro.org/downloads/
It is possible that only GCC has it. Look through your toolchain if it has one (or similar).
Thank youuu