响水凹

欢迎来到 Guang-Wen Duan (Dennis Duan) 的个人 Wiki

用户工具

站点工具


computer:c:tips:execution_character_set

执行字符集(Execution Character Set)

编写C代码时所用的字符集(source character set)和生成的执行程序所用的字符集(execution character set:执行字符集)不一定是相同的,比如交叉编译(Cross Compile)的时候。

此时,编译器在计算包含字符的常量表达式时,必须使用目标机器上的字符编码,而不是当前机器的字符编码。

虽然出现的场合很少,但这点需要记住。后面还会用到执行字符集这个概念。

computer/c/tips/execution_character_set.txt · 最后更改: 2014/11/01 02:02 由 127.0.0.1