运行在32位OS上构建的二进制文件以在64位OS上运行

运行在32位OS上构建的二进制文件以在64位OS上运行

问题描述:

是否始终可以构建在32位OS上构建的二进制文件以在64位OS上运行?如果没有,那是可能的,什么时候是不可能的. 如果不可能,为什么在某些情况下不可能呢?

Is it always possible to build a binary built on 32-bit OS to run on 64-bit OS? If not what cases it is possible and when it is not possible. If it is not possible why is it not possible in some cases?

取决于您的操作系统.在Windows上,所有32位二进制文​​件也应在64位上运行.在Linux上,如果您安装32位库,它也可以工作.在BSD上,与在Linux AFAIK上相同.

Depends on your OS. On Windows all 32 Bit binarys should also run on 64 Bit. On Linux it also works if you install the 32 Bit librarys. On BSD it's the same as on Linux AFAIK.