Skip to main content
KiptonM
Senior III
June 23, 2021
Solved

Is there a way to see the Assembler Code as you step through the C program?

  • June 23, 2021
  • 1 reply
  • 9196 views

In some other IDE for other micro controllers, you can have a window that shows the assembler code that is being executed as you single step through the C code in the debugger.

I have used it to optimize my C code, because I can see what each line generates in assembler. There are many ways to code the same thing, and sometimes only one way is either the fastest or smallest number of instructions. Seeing the assembler as you step through is one of the easiest ways to hand optimize.

I cannot seem to find that ability in the Cube IDE. Does it exist?

This topic has been closed for replies.
Best answer by KiptonM

I just found it.

It is called Disassembly View. You can get to it by Window->Show Views->Other and select Disassembly.

1 reply

KiptonM
KiptonMAuthorBest answer
Senior III
June 23, 2021

I just found it.

It is called Disassembly View. You can get to it by Window->Show Views->Other and select Disassembly.