我怎么知道我的GCC是否默认编译64位? [英] How can I tell whether my GCC is compiling 64bit by default?
本文介绍了我怎么知道我的GCC是否默认编译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屋!
查看全文