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
  • $ 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.

Reply
  • $ 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.

Children