Main Content

Byte ordering


Describe the byte ordering for the hardware that you use to test code.

Category: Hardware Implementation


Default: Little Endian


Specifies that the code determines the endianness of the hardware. This choice is the least efficient.

Big Endian

The most significant byte comes first.

Little Endian

The least significant byte comes first.


For guidelines about configuring Production hardware controls for code generation, see Hardware Implementation Options (Simulink Coder).


  • Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.

  • This parameter is enabled only if you can modify it for the selected hardware.

Command-Line Information

Parameter: TargetEndianess
Value: 'Unspecified' | 'LittleEndian' | 'BigEndian'
Default: 'LittleEndian'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation.

Related Topics