When should -m32 option of gcc be used?

后端 未结 2 710
粉色の甜心
粉色の甜心 2020-12-24 12:21

I am writing a program which if I compile on a Suse 10 32-bit system without adding the -m32 option and execute it on Suse 10 64-bit, it works fine.

In

2条回答
  •  死守一世寂寞
    2020-12-24 13:06

    There is no problems in running 32 bits executables on 64 bit OS (as long as 32 bit dynamic libraries are present and found).

    -m32 is there to compile 32 bits objects on a compiler configured to compile 64 bits objects by default.

提交回复
热议问题