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.

Did C6747 support packed struct?

Other Parts Discussed in Thread: TMS320C6747

I'm using CCS 5.0.3 with Generation Tools version v7.1.2 to develop TMS320C6747. I tried to define a structure with packed size (All the elements of the struct are aligned on 1 byte whenever what their types are). But I tried to use the primitive "__attribute__ ((packed))", but the compiler told me the packed will be ignored. But I found that the packed attribute is supported on C64x+ or C64x, so I think it's supported on TMS320C6747. But I don't know how to use the "packed attribute" correctly.

Thanks for your answer in advance.

  • Shan Wang said:
    I'm using CCS 5.0.3 with Generation Tools version v7.1.2

    There is no C6000 compiler release with version number 7.1.2.  I presume you mean 7.2.1.

    Shan Wang said:
    I tried to use the primitive "__attribute__ ((packed))", but the compiler told me the packed will be ignored.

    It works for me when I use these build options: -mv6740 --gcc.   

    Thanks and regards,

    -George