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.

C6211 code to C64xx

Is it lot of work to transfert code for a C6211 to the C64xx familly?

  • The answer to this question depends on several factors, so I will do my best to address all of them and still answer the question as it is.

    Porting C code from a C6211 to C64x is easy - simply recompile; however, porting code designed for a specific processor to another specific processor is more difficult (peripheral libraries and such).

    The peripherals used on both devices change drastically. This is where the real code porting takes place. Because some the peripherals changed so much (e.g., DMA to EDMA), this will take a fair amount of effort to port on its own. Depending on how familiar you are already with the newer devices, this amount may increase or decrease.

  •  Thank you for your awnser. My application don't use lot of DSP peripheral it is mostly a

    processing application (CPU) without exteriour interraction.

  • A pure C code algorithm is easily transferred by rebuilding with the proper switch to the compiler (-mv6400 instead of -mv6210). This will rebuild the source code into the proper assembly for a 64x target.

  • Also of note is the fact that your 62x assembly/object code is usable exactly as is on the 64x.  If for example you have any assembly algorithms you do not need to make any changes.

    The 64x instruction set contains the entire 62x instruction set plus some additional instructions for packed math, etc.  Recompiling your code can get you better performance if it takes advantage of those instructions.  Moving to a 64x+ target is even more advantageous as there are new constructs such as 16-bit instructions and the SPLOOP buffer.