How do I build/run 32bit MIPS code?
Posted: Fri Feb 07, 2020 4:26 am
Starting from version v10.2-200127, Debian/MIPS machine is 64bit environment. However, it supports multi-lib architecture and thus supports both 32bit and 64bit development.
Suppose you have a C code file called hello.c.
You use the same flag, "-mabi=32", to build 32bit code for g++ as well.
Suppose you have a C code file called hello.c.
- To build 64bit code, simply run "gcc hello.c"
- To build 32bit code, run "gcc -mabi=32 hello.c"
You use the same flag, "-mabi=32", to build 32bit code for g++ as well.