Mips32 utility

From LinuxMIPS
Jump to: navigation, search

mips32 creates a 32-bit MIPS environment for specified program, usually shell. The environment is inherited by all child processes of that program, unless they set a different personality. The 32-bit MIPS environment currently only means all uname system calls (and thus also outputs of the uname(1) program with -m or -a options) will return mips instead of mips64 as machine type. mips64(8) can be used to temporarily switch back.

Example

A typical use is when building 32-bit software on a 64-bit system. In particular GNU autoconf may cause problems if it detects the system type as 64-bit or even fails on 64-bit system. To do this a shell in which the uname command will return mips can be created by invoking mips32 as:

   $ uname -m
   mips64
   $ exec mips32 $SHELL
   $ uname -m
   mips
   $

Now the package can be built as usual with no modifications to configuration scripts.

Credits

The mips32 package has been created based on Jakub Jelinek's sparc32 v1.1 by simple editing.

NewPP limit report Cached time: Cache expiry: 86400 Dynamic content: false CPU time usage: 0.006 seconds Real time usage: 0.044 seconds Preprocessor visited node count: 7/1000000 Preprocessor generated node count: 12/1000000 Post‐expand include size: 0/2097152 bytes Template argument size: 0/2097152 bytes Highest expansion depth: 2/40 Expensive parser function count: 0/100 Transclusion expansion time report (%,ms,calls,template) 100.00% -total Saved in parser cache with key wikidb:pcache:idhash:881-0!*!*!!*!*!* and timestamp and revision id 6336