我怎么知道我的GCC是否默认编译64位? [英] How can I tell whether my GCC is compiling 64bit by default?

查看:988
本文介绍了我怎么知道我的GCC是否默认编译64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以知道GCC默认是编译32位还是64位的代码?

我的GCC版本是4.1.2。我的内核版本是x86_64。

谢谢。

 目标:x86_64-redhat-linux 


is there any way to know whether GCC is compiling 32 or 64bit code by default?

my GCC version is 4.1.2. my os kernel version is x86_64.

thanks.

解决方案

Type gcc -v. Amongst other things, it will tell you the target platform. For instance, I get:

Target: x86_64-redhat-linux

这篇关于我怎么知道我的GCC是否默认编译64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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