micropython for MIPS32
CC="msdk-linux-gcc" CXX="msdk-linux-gcc" ./configure --prefix=$(pwd)/lib1 --host=mips-linux --enable-static=yes --enable-shared=yes
cd ../../ports/unix && PKG_CONFIG_PATH=../../lib/libffi/mips-unknown-elf/ CROSS_COMPILE=msdk-linux- make
$ LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./micropython -h
usage: ./micropython [<opts>] [-X <implopt>] [-c <command>] [<filename>]
Options:
-v : verbose (trace various operations); can be multiple
-O[N] : apply bytecode optimizations of level N
Implementation specific options (-X):
compile-only -- parse and compile only
emit={bytecode,native,viper} -- set the default code emitter
heapsize=<n>[w][K|M] -- set the heap size for the GC (default 1048576)