-fexec-charset是预处理选项还是编译本身的选项?
在看GNU CPP(C preprocessor)手册的时候,有如下一段话:After preprocessing is complete, string and character constants are converted again, into the execution character set.
This character set is under control of the user; the default is UTF-8, matching the source character set.
这里说的under control of the user应该指的就是-fexec-charset=选项。但是,string and character constants are converted again, into the execution character set.这个按照它说的应该是在预处理完成之后,即compilation proper阶段(预处理之后的编译阶段)做的事情。那-fexec-charset=就应该不是一个控制cpp的选项,应该是一个控制compilation proper的选项。可为什么在GCC手册里,-fexec-charset=却被放在了3.11 Options Controlling the Preprocessor这一节里?成了一个控制cpp的选项。
弄不明白,希望大家指点。 是编译器的选项。
-fexec-charset=charset
Set the execution character set, used for string and character
constants.The default is UTF-8.charset can be any encoding
supported by the system’s "iconv" library routine. 楼上,那GCC手册把它放在3.11 Options Controlling the Preprocessor如何理解? 刚才看了一下,还真是这样,觉得有点奇怪。不过不用太关心吧,呵呵
页:
[1]