分页: 1 / 1

32位与64位软件编译问题

发表于 : 2008-09-14 9:58
mech
请问如果有一软件的源码,那么我在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位?

发表于 : 2008-09-14 10:00
BigSnake.NET
file hello
就知道了