sdk-ng
sdk-ng copied to clipboard
xtensa wchar_t is 16 bits?
trafficstars
I just did a survey of all of the SDK compilers and only xtensa uses a 2-byte wchar_t. This means that applications built on xtensa will not be able to handle the full Unicode range. Looking at the xtensa gcc config, only the embedded build uses this size; other xtensa toolchain options use a 4-byte wchar_t. This seems like an opportunity for errors when porting software between xtensa and other architectures.