Skip to content

Commit 193bc37

Browse files
jimmodpgeorge
authored andcommitted
mpy-cross/README.md: Add notes about -march and -O.
1 parent 381be9a commit 193bc37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: mpy-cross/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ the unix port of MicroPython requires the following:
2222

2323
$ ./mpy-cross -mcache-lookup-bc foo.py
2424

25+
If the Python code contains `@native` or `@viper` annotations, then you must
26+
specify `-march` to match the target architecture.
27+
2528
Run `./mpy-cross -h` to get a full list of options.
29+
30+
The optimisation level is 0 by default. Optimisation levels are detailed in
31+
https://docs.micropython.org/en/latest/library/micropython.html#micropython.opt_level

0 commit comments

Comments
 (0)