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.

Compiler/DRA787: How to change little endian to big endian?

Part Number: DRA787

Tool/software: TI C/C++ Compiler

The PDK and vision SDK use little endian by default.

In our project, the communication protocol use big endian, and some file which to be analyzed use big endian too.

And arm(m4) can be  change to big endian.

the question is:

1. Can C66x be change to big endian?

2. How to change m4 and C66x to big endian in compile option?

  • Hi,

    Yes C6x also can be changed to big endian.

    You will need to look at compiler options and use appropriate flags for big endian.

    E.g. Below is taken from cl6x --help

    Processor Options:
    -mv,--silicon_version=id     Target processor version (when not specified,
                                  compiler defaults to --silicon_version=6500)
    --big_endian,-me             Generate big endian code
    

    Regards,

    Rishabh