aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-08-19 17:49:33 +1000
committerDamien George <damien@micropython.org>2021-08-20 20:18:52 +1000
commitb51e7e9d01a696cdfefada2e374db51752d1b803 (patch)
treee0ba775ecfe9f5564cf691864abe8e4404e67d75 /py/mpconfig.h
parent61d5a8b9ceab474d4137be53b422f5ece70c61a0 (diff)
stm32: Disable computed goto on constrained boards.
Saves ~1kiB. Add comment to this effect to mpconfig.h. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 2e83c90c5..db2aec3bf 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -483,7 +483,8 @@
/* Optimisations */
// Whether to use computed gotos in the VM, or a switch
-// Computed gotos are roughly 10% faster, and increase VM code size by a little
+// Computed gotos are roughly 10% faster, and increase VM code size by a little,
+// e.g. ~1kiB on Cortex M4.
// Note: enabling this will use the gcc-specific extensions of ranged designated
// initialisers and addresses of labels, which are not part of the C99 standard.
#ifndef MICROPY_OPT_COMPUTED_GOTO