Skip to content

Instantly share code, notes, and snippets.

@olegslavkin
Last active February 14, 2019 07:41
Show Gist options
  • Save olegslavkin/505c96992e08ac80c046d086c1675114 to your computer and use it in GitHub Desktop.
Save olegslavkin/505c96992e08ac80c046d086c1675114 to your computer and use it in GitHub Desktop.
micropython for MIPS32

Compile

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

RUN

$ 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment