This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do you convert C++ or C code into assembly.



I really only want this for snippets to get an idea of how simple code such as loops, counters would look like in Assembly. Thanks. 

  • Hello,

    Enable the '--keep_asm' compiler option when building your C file. This will keep the generated assembly source for the C file. The option is available under your build properties (Build -> <Device Family> Compiler -> Advanced Options -> Assembler Options)

    Thanks

    ki