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.

Compiler: Compare C code to assembly code in DSP(C2000 MCU) application

Tool/software: TI C/C++ Compiler

Compare C code to assembly code in DSP(C2000 MCU) application.

In order to achieve the same function such as PWM control, how much the memory capacity of DSP(C2000 MCU) can be recude by using assembly code that compare with C code and how many garbege code of X0. file are produced by using C code that compare with assembly code?

  • I think you mean to compare the code size (the amount of memory used by the instructions in the program) of hand-coded assembly with that of C code.  TI has not published any such comparison.  It is likely the code size of hand-coded assembly is smaller.  I can only guess at how much smaller, and I don't want to do that.  The better question is this:  Is that code size savings justified by all the extra trouble of writing in hand-coded assembly?  I don't know.  But my guess is probably not.

    A related point to consider ... Lots of code is already available from TI in packages like C2000Ware.  When you have that, why write it at all?

    Thanks and regards,

    -George