本文介绍了“启用选项”与“启用选项”之间有什么区别?和“通过的选项” usind gcc -Q -v的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找编译期间使用的默认编译器标志。因此,我使用了命令 gcc -Q -v
,感兴趣的输出如下所示:

I am now wondering: what is the difference between options enabled and options passed?

解决方案

Options passed are options added to the command line, added by configuration, like -march=x86-64 -fstack-protector, or by command invocation, like -v. That means those options are not enabled by default and must be specified by gcc command.

Options enebled are options that are enabled and are always used to compile with that specific gcc on the specific system, as far as into option passed you are not disabling some of them.

E.g. On a clear environment calling gcc example.c will give you example.c as only passed option, but all options enabled still the same.

这篇关于“启用选项”与“启用选项”之间有什么区别?和“通过的选项” usind gcc -Q -v的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 13:05