From ad81a2e6cf349cba514e73dc4fe18b1d512b7ce4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 27 Feb 2017 15:09:15 +1100 Subject: minimal: Add ability and description to build without the compiler. --- minimal/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'minimal/README.md') diff --git a/minimal/README.md b/minimal/README.md index 7c42e082e..14b8c00a3 100644 --- a/minimal/README.md +++ b/minimal/README.md @@ -33,3 +33,15 @@ This version of the build will work out-of-the-box on a pyboard (and anything similar), and will give you a MicroPython REPL on UART1 at 9600 baud. Pin PA13 will also be driven high, and this turns on the red LED on the pyboard. + +## Building without the built-in MicroPython compiler + +This minimal port can be built with the built-in MicroPython compiler +disabled. This will reduce the firmware by about 20k on a Thumb2 machine, +and by about 40k on 32-bit x86. Without the compiler the REPL will be +disabled, but pre-compiled scripts can still be executed. + +To test out this feature, change the `MICROPY_ENABLE_COMPILER` config +option to "0" in the mpconfigport.h file in this directory. Then +recompile and run the firmware and it will execute the frozentest.py +file. -- cgit v1.2.3