We've been working with CCS v5.x and v6.x to use TM4C device.
Our current code has some of Shift JIS code.
This has worked quite well so far.
When ARM compiler was updated, a problem occurred.
-----------------------------------------------------
Compile finished correctly
TI v4.9.0, TI v5.0.4
Compile error occurred
TI v5.1.10, v5.1.11, v5.1.16, ti-cgt-arm_5.2.2
-----------------------------------------------------
Before updating, enable processing for multibyte character sequences, error didn't occur.
It seems that this problem is based on "escape sequence" compiled by ARM compiler.
Please tell me workaround regarding to escape sequence in multibyte.
It is sample code for multibyte compile error as below:
When compiler recognize correctly, error does not occur.
-----
// Shift JIS "欺"(0x8B,0x5C) -> 欺
#if 0
#error "Enables processing for multibyte character sequences in comments.(--multibyte_chars)"
// "0x5C" is escape character in preprocessor in C.
// So, "#if 0" is recognized as comment by compiler, and this block:#error is enabled.
//
//
//
// Appendix:
// ARM compiler described as below:
// 8.133 --multibyte_chars, --no_multibyte_chars
// infocenter.arm.com/.../index.jsp
// Shift-JIS
// Enables and disables processing for multibyte character sequences in comments, string literals, and character constants.
// Usage
// Multibyte encodings are used for character sets such as the Japanese Shift-Japanese Industrial Standard (Shift-JIS).
#endif
-----
Best regards,
kyt