summaryrefslogtreecommitdiffstatshomepage
path: root/mpy-cross
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-12-07 22:31:04 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-09 14:23:04 +1100
commit193bc3702f35bc7b60ffd79e4f41ecd5db1fd383 (patch)
treef3d1e4e9067ddb98ab434e3b32a2627c6c5af436 /mpy-cross
parent381be9a745a2895f6333e5d7443f6d32fbe524de (diff)
downloadmicropython-193bc3702f35bc7b60ffd79e4f41ecd5db1fd383.tar.gz
micropython-193bc3702f35bc7b60ffd79e4f41ecd5db1fd383.zip
mpy-cross/README.md: Add notes about -march and -O.
Diffstat (limited to 'mpy-cross')
-rw-r--r--mpy-cross/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/mpy-cross/README.md b/mpy-cross/README.md
index e35b28b696..bf743a9031 100644
--- a/mpy-cross/README.md
+++ b/mpy-cross/README.md
@@ -22,4 +22,10 @@ the unix port of MicroPython requires the following:
$ ./mpy-cross -mcache-lookup-bc foo.py
+If the Python code contains `@native` or `@viper` annotations, then you must
+specify `-march` to match the target architecture.
+
Run `./mpy-cross -h` to get a full list of options.
+
+The optimisation level is 0 by default. Optimisation levels are detailed in
+https://docs.micropython.org/en/latest/library/micropython.html#micropython.opt_level