1. 编译选项-g:Generate debug information when compiling.
2. 优化选项-O0:关闭所有优化选项。
3. Warning:(GCC)
1) Warning: multi-character character constant
Could be suppressed by -Wno-multichar
There're three kinds of character constants: Normal character constants, Multicharacter constants and Wide-character constants.
char ch = 'a';
int mbch = '1234';
wchar_t wcch = L'ab';
Mbch is of type int(signed), has 4 meaningful characters.
Gcc compiler evaluates a multi-character character constant a character at a time, shifting the previous value left by the number of bits per target character, and then or-ing in the bit-pattern of the new character truncated to the width of a target character.
'ab' for a target with an 8-bit char would be interpreted as:</