Arithmetic Services and Constants

A special case for using arithmetic services arises when constants are used in an operation. Constants defined in ASCET and literals do not have any specific type. If you selected to use arithmetic services, types are automatically assigned to these values during the code generation process. In this case, the code generator selects the first type from the list that is suitable for the value of the constant:

sint8, uint8, sint16, uint16, sint32, uint32

An exception to this rule occurs if a binary operator has as its input both a constant of an undefined type and a variable with a defined type.