This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARMCC: How to generate assembly

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

  • Windows PC
  • ARM_Compiler_5.06u6

Parents
  • If you have a c file to compile isn't it all together the other way around to first get to the elf and then disassemble it. Why don't you in the compilation give "--save-temps" and you will have intermediate files throughout the compilation stored.

    armcc --save-temps test.c -o test

Reply
  • If you have a c file to compile isn't it all together the other way around to first get to the elf and then disassemble it. Why don't you in the compilation give "--save-temps" and you will have intermediate files throughout the compilation stored.

    armcc --save-temps test.c -o test

Children