返回信息流有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗?
devcpp
这是一条镜像帖。来源:北邮人论坛 / soft-design / #35299同步于 2009/7/28
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖
[求助]编译成64位的可执行文件怎么设置编译器
totoo
2009/7/28镜像同步8 回复
订阅后,新回复会通过你的通知中心匿名送达。
8 条回复
-m64?
【 在 totoo (我转我转我转转转 ) 的大作中提到: 】
: 有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗?
: devcpp
你确定你不需要搭建一个交叉编译环境?
【 在 totoo (我转我转我转转转 ) 的大作中提到: 】
: 有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗?
: devcpp
These `-m' switches are supported in addition to the above on AMD
x86-64 processors in 64-bit environments.
`-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.
【 在 Bergwolf (计忆邮心|Kinight) 的大作中提到: 】
: -m64?
yegle兄,交叉编译环境是啥意思
是指在32位操作系统上既能够写32位程序又能写64位程序吗?
【 在 yegle 的大作中提到: 】
: 你确定你不需要搭建一个交叉编译环境?
er。。。有错么?
【 在 yegle ( ) 的大作中提到: 】
: These `-m' switches are supported in addition to the above on AMD
: x86-64 processors in 64-bit environments.
: `-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.