How do I build/run 32bit MIPS code?

Frequently asked questions related to Debian/MIPS AMI
jsun
Site Admin
Posts: 81
Joined: Tue May 26, 2015 9:52 pm

How do I build/run 32bit MIPS code?

Postby jsun » 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.
  • 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.

Return to “FAQ”

Who is online

Users browsing this forum: No registered users and 1 guest