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/TM4C1294NCPDT: What endianness TI C Compiler uses?

Part Number: TM4C1294NCPDT

Tool/software: TI C/C++ Compiler

I tried to find this information in ARM Optimizing C/C++ Compiler but I didn't find.

By default the compiler uses little or big endian? Can I change it if I need to? How?

The endianness is the same for every operation?

  • rrd said:
    By default the compiler uses little or big endian?

    See Table 2-1. Processor Options in ARM Optimizing C/C++ Compiler 

    rrd said:
    Can I change it if I need to?

    A compiler option can be used change the endianness used by the compiler.

    However, in Cortex-M devices the endianness used by the device is set by a control input at reset. The Tiva devices are fixed to operate as little-endian. I.e. the compiler must be told to use little-endian for programs compiled for a TM4C1294NCPDT.