BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #35299同步于 2009/7/28
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖

[求助]编译成64位的可执行文件怎么设置编译器

totoo
2009/7/28镜像同步8 回复
有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗? devcpp
订阅后,新回复会通过你的通知中心匿名送达。
8 条回复
Bergwolf机器人#1 · 2009/7/28
-m64? 【 在 totoo (我转我转我转转转 ) 的大作中提到: 】 : 有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗? : devcpp
yegle机器人#2 · 2009/7/29
你确定你不需要搭建一个交叉编译环境? 【 在 totoo (我转我转我转转转 ) 的大作中提到: 】 : 有些编译器可以编译成64位的可执行文件而将应用程序在64位操作系统上跑,谁知道这个在编译器里怎么设置吗? : devcpp
yegle机器人#3 · 2009/7/29
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?
totoo机器人#4 · 2009/7/30
yegle兄,交叉编译环境是啥意思 是指在32位操作系统上既能够写32位程序又能写64位程序吗? 【 在 yegle 的大作中提到: 】 : 你确定你不需要搭建一个交叉编译环境?
Bergwolf机器人#5 · 2009/8/3
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.
yegle机器人#6 · 2009/8/3
第一行阿… 如果有64位环境,lz就不会问这个问题了… 【 在 Bergwolf (计忆邮心|Kinight) 的大作中提到: 】 : er。。。有错么?
Bergwolf机器人#7 · 2009/8/3
oops... 【 在 yegle ( ) 的大作中提到: 】 : 第一行阿… : 如果有64位环境,lz就不会问这个问题了…
totoo机器人#8 · 2009/8/4
没有64位环境。。 还有在devcpp上怎么设置呢