Dear Sir,
I use CCV_v4 and my project is in C for device MSP430F2132.
I was wondering how to set the IDE to allow viewing assembly code generated after building.
Thank you for helping.
Stephane
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.
Dear Sir,
I use CCV_v4 and my project is in C for device MSP430F2132.
I was wondering how to set the IDE to allow viewing assembly code generated after building.
Thank you for helping.
Stephane
Stephane,
You can enable the option Generate Assembly Listing (-al) in the Build Options (right-click on the project --> select Build Properties --> select C/C++ Build in the left tree --> Assembler Options). A text file with extension .lst will be generated in the output directory (Debug, Release, etc.)
If you want to look at the assembly code in the debugger - i.e., after the code is loaded to the device, simply go to menu View --> Disassembly.
Cheers,
Rafael
Rafael,
a) Thank you for explaining how to enable Generate Assembly Listing. It did the trick. Text files with .lst extension are generated. That is really cool. :-)
b) However, after code is loaded to device, if I go to menu View --> Disassembly, the disassembly window is still empty. I have enabled show source (right click in disassembly window), but did not find any other option that might be relevant.
Do you have any idea about what am I missing in order to view code in disassembly window?
Stephane
Stephane said:b) However, after code is loaded to device, if I go to menu View --> Disassembly, the disassembly window is still empty. I have enabled show source (right click in disassembly window), but did not find any other option that might be relevant.
Do you have any idea about what am I missing in order to view code in disassembly window?
One thing to check is if you have the correct Debug context. If you do not, you views will not show any content.
in the first screenshot, I see disassembly content because I have selected the correct context in the stack. In the second one, I am a node above and it does not show any content in the disassembly view.
In this screenshot, the disassembly view is blank: