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.

Data types of TMS320C6746

Other Parts Discussed in Thread: TMS320C6746, TMS320VC5502

Hi, What are the data types of TMS320C6746 DSP.

As tms320c5502 data types as follows.

char-- 16 bits

short --16 bits

int --16 bits

long-- 32 bits

long long -- 40 bits

float-- 32 bits

double -- 64 bits

What are this data types for TMS320C6746?

  • Depends on compiler and output binary type. For TI CGT6000 see "spru187u.pdf", "6.4 Data Types". To summarize, the following applies for both COFF and EABI except for "long".
    char-- 8 bits
    short --16 bits
    int --32 bits
    long-- 40 bits for COFF and 32 bits for EABI
    long long -- 64 bits
    float-- 32 bits
    double -- 64 bits

  • Depends on compiler means?

    In all the compilers of TMS320VC5502 , data types are as follows:

    char-- 16 bits

    short --16 bits

    int --16 bits

    long-- 32 bits

    long long -- 40 bits

    float-- 32 bits

    double -- 64 bits

    1) I s they changed as compiler changed?

    2) or compiling using any compiler they are same for TMS320VC5502 platform?

    3) Please clear me about compiler dependency.

    4) Is there any compiler for 5502 in which char is 8 bit long.?

    Regards,

    Rahul Shah

  • I should not have mentioned compiler dependencies. On the C55xx and C674x processors, the only compilers that I have seen are TI's CGT compilers. Maybe there are others out there. On the MSP430, there are more than one TI, IAR and GNU. Each are slightly different. I thought your question was about the C674x data types.

  • ok thanks.

    I clear about this.

    So there is only one compiler for C5502,and also for C6746 .So data types are fixed.

    So as per your previous to previous post as u say data types depends on Compiler and output file.

    but it is not valid for C5502 and C6746.

    Am i correct?

  • Forgot that the C674X has a port of the GNU compiler for the linux-c6x project. I have no experience with that compiler. I have no idea if there is a port for C5X. You can search around for GNU ports and details of the GNU compilers.

    For the C5502 compiler from Texas instruments, the data types are fixed. For the C6746 compiler from Texas instruments, the data types differ slightly between the COFF and EABI binary output formats.