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.

Complex Multiplication in C6474 ?

Hello ,

I'm using EVM C6474 ..& im  executing a C language code for complex matrix multiply ...

To improve the effeciency of my code .. I want to know if there are some ways to mix Assembly instructions with C code and use 'c declared variables' in asm

Another problem is that the  assembly instruction  (CMPY : Complex Multiply) can only handle 16-bits inputs, while I've 32-bit ones. Is there any way to do 32-bit complex mutiply exploiting this assembly instruction

Thank you in advance.

 

  • Are you certain that you need the extra range or resolution of 32-bit numbers for your matrix values? You can take advantage of CMPY if you use 16-bit numbers, as you have already determined; the CMPY* instructions will not work for 32-bit numbers.

    Please go to the TI Wiki Pages and do a search for C6000 Optimization; you will find several useful topics there, including a set of Workshop materials and a page with links for verious optimization techniques.

    For specific information on mixing C and assembly, please refer to the C6000 Optimizing Compiler User's Guide for the version of the Code Generation Tools you are using.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.