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.

Comparing Assembly to original C Code

I have a build using a C2000 compiler that outputs my assembly output from the assembly of my C files and using CCS 5.5 I can open the assembly files  and with the CCS editor i have syntax highlighting setup to easily find the assmbly commands. 

My main question, does TI provide a tool that can strip all the TI assembly attributes out and leave just the assembly commands and demangle the function names (I have C++ also)? I would like to have setup where i can have the C file and a corresponding assembly open and after compiling gives me the pure assembly to compare side by side with the original code.

Thank you

Edit: I am aware of the dem2000 tool for demangling the assembly files.

  • We only have partial solutions.  And even those are not integrated into CCS.  You have to do it yourself from the command line.

    Lucas Brendel said:
    a tool that can strip all the TI assembly attributes out

    By this I presume you mean the directives like .dwattr, .global, and so on.  The build option --symdebug:none disables the output of all the Dwarf directives (which are all .dwsomething).  That isn't all the directives, but it is most of them.  If you want to remove the other directives, you have to do it yourself with something like Perl or grep.  

    Demangling with dem2000 can only be run as a separate step on the command line.

    Thanks and regards,

    -George

  • Thanks for the reply. I realize that dem2000 would have to be called seperately. I had forgotten about changing the --symdebug:none command. I was starting to do some regex replaces and such for commands but just wanted to make sure if there was anything already supported. 

    If i come up with something that can be used for others maybe i can post it here.

    Thanks again.