
64位linux下面的GCC如何编译出一个32位可执行程序
1个回答
展开全部
在编译参数里面,加上这么一条: -m32
比如:
gcc -m32 -o helloworld helloworld.c
然后,再这样:
file helloworld
查看其是32-bit elf excutable file
比如:
gcc -m32 -o helloworld helloworld.c
然后,再这样:
file helloworld
查看其是32-bit elf excutable file
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |