MATLAB: What does the tag at the end of the RTWTYPES_ID flag in rtwtypes.h represent in Real-time Workshop Embedded Coder

Embedded Coder

When I generate code, I notice a flag such as
RTWTYPES_ID_C08S16I32L32N32F1
in rtwtypes.h.
The code comment states that this flag is used to check for incompatible rtwtypes.h files. What does the flag mean?

Best Answer

The flag lists the sizes of the data types use in the code. for example, RTWTYPES_ID_C08S16I32L32N32F1 indicates the following:
C08 --> 8-bit char
S16 --> 16-bit short
I32 --> 32-bit int
L32 --> 32-bit long
N32 --> 32-bit native word
F1 --> floating point is allowed
The bit lengths used for code generation for a particular model can be found in the Hardware Implementation page of the Configuration Parameters.