micropython/docs/develop
Damien George 2283b6d68f py: Pass in address to compiled module instead of returning it.
This change makes it so the compiler and persistent code loader take a
mp_compiled_module_t* as their last argument, instead of returning this
struct.  This eliminates a duplicate context variable for all callers of
these functions (because the context is now stored in the
mp_compiled_module_t by the caller), and also eliminates any confusion
about which context to use after the mp_compile_to_raw_code or
mp_raw_code_load function returns (because there is now only one context,
that stored in mp_compiled_module_t.context).

Reduces code size by 16 bytes on ARM Cortex-based ports.

Signed-off-by: Damien George <damien@micropython.org>
2022-12-08 12:27:23 +11:00
..
img docs/develop: Add MicroPython Internals chapter. 2021-01-27 16:59:58 +11:00
cmodules.rst examples/usercmodule: Add example of a native C class. 2022-11-23 11:46:17 +11:00
compiler.rst py: Pass in address to compiled module instead of returning it. 2022-12-08 12:27:23 +11:00
extendingmicropython.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00
gettingstarted.rst top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
index.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00
library.rst all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
maps.rst docs/develop: Add MicroPython Internals chapter. 2021-01-27 16:59:58 +11:00
memorymgt.rst docs/develop: Add MicroPython Internals chapter. 2021-01-27 16:59:58 +11:00
natmod.rst py/dynruntime.mk: Add basic support for armv6m architecture. 2022-05-23 23:01:25 +10:00
optimizations.rst top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
porting.rst all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
publiccapi.rst docs/develop: Add MicroPython Internals chapter. 2021-01-27 16:59:58 +11:00
qstr.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00
writingtests.rst tests: Rename run-tests to run-tests.py for consistency. 2021-03-12 19:56:09 +11:00