Tool/software: TI C/C++ Compiler
Hello,
is it possible to generate a listing file from the compiler with shows the C-source line and the corresponding assembler mnemonics (like the view in the disassembly window of CCS).
Thank you very much
Ralf
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.
Tool/software: TI C/C++ Compiler
Hello,
is it possible to generate a listing file from the compiler with shows the C-source line and the corresponding assembler mnemonics (like the view in the disassembly window of CCS).
Thank you very much
Ralf
Hello,
thanks for your response.
I have activated this option. After this a list file with *.lst is generated. But the content of this listing file looks not like the view of the disassembly window (see attachment).
Are the other options to get a view like the diassembly window.
Best regards
Ralf
In the CCS screen shot above, just below the --asm_listing option, there is a drop down box titled Source interlist. Experiment with those compiler options. Look at the resulting .lst file. One of those options will probably do what you want.
Thanks and regards,
-George
Thanks for your response.
I have tested both options of the "Source Interlist" drop down box, but no one of them works. The result is the same.
Are there any other options to get the *.lst file?
Best regards
Ralf
The .lst file you show in the screen shot a few posts back is the correct one. Keep in mind it is a simple text file. When you step through a function, CCS knows to change the focus in the disassembly view to the next instruction to execute. Nothing like that happens with any text file, including listing files. You have to manually advance through the file to find the instructions for a given function. Searching for the function name is a good way to start. It is normal for a compiler generated assembly file to begin with lots of Dwarf debug directives. They all start with .dw. Sometimes there are a few hundred lines of Dwarf directives before any instructions appear.
Thanks and regards,
-George