[ERROR]
For HIWARE object file format (option -Fh, -F7 and default if no other object file format is selected) the char type must always be of size 1. This limitation is because there may not be any new types introduced in this format and 1 byte types are used internally in the compiler ever if the user only need multibyte characters. For the strict HIWARE object file format (option -F7) the additional limitation that the enum type has the size 2 bytes, and must be signed, is checked with this message. The HIWARE Object File Format (-Fh) has following limitations: The type char is limited to a size of 1 byte Symbolic debugging for enumerations is limited to 16bit signed enumerations No symbolic debugging for enumerations No zero bytes in strings allowed (zero byte marks the end of the string) The strict HIWARE V2.7 Object File Format (option -F7) has some limitations: The type char is limited to a size of 1 byte Enumerations are limited to a size of 2 and has to be signed No symbolic debugging for enumerations The standard type 'short' is encoded as 'int' in the object file format No zero bytes in strings allowed (zero byte marks the end of the string)
COMPOPTIONS= \c -Te2 \c -Fh
Use -Fh HIWARE object file format to change the enum type. To change the char type, only the ELF object file format can be used (if supported). Note that not all backends allow the change of all types.