32位与64位软件编译问题
发表于 : 2008-09-14 9:58
请问如果有一软件的源码,那么我在32位ubuntu下编译出的是32位的软件,在64位ubuntu下编译出的就是64位的?
比如一个简单的c程序:
/*test.c*/
#include <stdio.h>
int main (argc,argv[])
{
printf('hello"\n);
return 0;
}
编译: gcc test.c -o hello
那么这个hello是32位还是64位?
比如一个简单的c程序:
/*test.c*/
#include <stdio.h>
int main (argc,argv[])
{
printf('hello"\n);
return 0;
}
编译: gcc test.c -o hello
那么这个hello是32位还是64位?