gpt4 book ai didi

gcc - gcc选项中-m32、-m64和nothing之间有什么区别?

转载 作者:行者123 更新时间:2023-12-02 00:05:22 28 4
gpt4 key购买 nike

gcc -m32 main.cpp

gcc -m64 main.cpp

gcc main.cpp

gcc 选项中的 -m32-m64nothing 有什么区别?

最佳答案

请参阅 gcc 手册页 [ here ],表示

-m32 -m64 Generate code for a 32-bit or 64-bit environment. 

The 32-bit environment sets int, long and pointer to 32 bits and
generates code that runs on any i386 system.

The 64-bit environment sets int to 32 bits and long and pointer to
64 bits and generates code for AMD 's x86-64 architecture.
For darwin only the -m64 option turns off the -fno-pic and -mdynamic-no-pic options.

关于gcc - gcc选项中-m32、-m64和nothing之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40612218/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com