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.

Host Intrinsics Package

Hi,

I want to use the Host Intrinsic Package (http://processors.wiki.ti.com/index.php/Run_Intrinsics_Code_Anywhere) for a C674x DSP.
There seems to be no C674x defined in the package.While looking at Table 7-3 "C6000 C/C++ Intrinsics Support by Device" in
SPRU187U I noticed that the Intrinsics of C674x are a union of the C6400+ and the C6700 intrinsics.

Is it the desired way to specify C6400+ and C6700 to get the C674x intrinsic support, or will there be an update on the host intrinsics package?

regards,

Sebastian

Here is an extract of the readme.txt of the package:

On the host compiler build command line define these two preprocessor
  variable names:
  1. One of: LITTLE_ENDIAN_HOST, BIG_ENDIAN_HOST
     To indicate the endianness of the host machine.  Any Intel x86 system
     (Windows, Linux, or Macintosh) is little endian.  Big endian machines
     (Sparc, really old Macintosh) are less common.
  2. One of: TMS320C62X, TMS320C64X, TMS320C64PX, TMS320C67X, TMS320C66X
     To indicate which C6000 target is used
  +  Typical example:  -DLITTLE_ENDIAN_HOST -DTMS320C64PX

  • Hi Seb,

    use -DLITTLE_ENDIAN_HOST -DTMS320C66X in the latest package

    C6xSimulator.h includes

    #ifdef TMS320C66X
    #define TMS320C62X
    #define TMS320C64X
    #define TMS320C64PX
    #define TMS320C67X
    #endif          // TMS320C66X

    Greeting Mehly

  • Hi

    your right, all of the C674x intrinsics are also available on the c66xx architecture. But I don't want to have intrinsics defined, that do not exist on the DSP.

    Best wished to the capital city,

    Sebastian



  • Hi,

    then try to define all subsets you need.

    For example use -DLITTLE_ENDIAN_HOST -DTMS320C64XP -DTMS320C67X !!

    Good luck.

    Mehly

  • I can confirm the posts by Mehly are correct.  

    If it were me, I would build with -DTMS320C66X .  In the unlikely event I use a C66x only intrinsic, it gets caught when I build with the TI compiler: cl6x --silicon_version=6740 .

    Thanks and regards,

    -George

  • Hi George,

    Sebastian are also right, C6xSimulator.h missing something like this:

    #ifdef TMS320C674X
    #define TMS320C62X
    #define TMS320C64X
    #define TMS320C64PX
    #define TMS320C67X
    #endif          // TMS320C674X

    Best regards,
    Mehly