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

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

问题描述

我已经从 gcc 版本 4.0.3 移动到 4.3.3 并意识到 -mfpmath 在 gcc 4.3.3 中默认设置为 sse.这实际上导致了我的应用程序中的错误.在 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

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

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天全站免登陆