gcc 4.3.3默认情况下启用编译器选项 [英] gcc 4.3.3 compiler options enabled by default

查看:178
本文介绍了gcc 4.3.3默认情况下启用编译器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从gcc版本4.0.3移动到4.3.3,意识到-mfpmath默认设置为sse gcc 4.3.3。这实际上导致我的应用程序的错误。
在4.0.3 -mfpmath是387。

I have moved from gcc version 4.0.3 to 4.3.3 and realized that -mfpmath was set to sse by default in gcc 4.3.3. This actually caused errors in my application. In 4.0.3 the -mfpmath was 387.

我想知道如何获得所有默认选项由gcc启用给定的版本。
如何转储gcc在编译时使用的所有选项的集合。
这使我可以比较版本4.0.3和4.3.3。

I want to know how I can get all the default options enabled by gcc for a given version. How can I dump set of all options used by gcc while compiling. This enables me to compare version 4.0.3 vs 4.3.3.

一般来说,如果我可以知道一个全面的列表需要在gcc中进行版本更改之前进行检查(因为这会影响性能和功能。)

In general it will be great if I can know a comprehensive list of things need to be checked before going for a version change in gcc .(As this has effect on performance and functionality.)

推荐答案

gcc -Q -v(inputfile)

gcc -Q -v (inputfile)

只需要一个基本的c或cpp文件作为输入文件。应该给你一个大的列表,默认传递给gcc的所有选项,其中一个可能导致sse fp math被启用。

With just a basic tiny c or cpp file as an input file. Should give you a big list of all the options passed to gcc by default, one of those might be causing sse fp math to be enabled.

这篇关于gcc 4.3.3默认情况下启用编译器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆