Files
Jeff Epler 007f127a61 all: Simplify mp_int_t/mp_uint_t definition.
Assuming proper C99 language support, we can select "the int type as big as
a pointer" (most of the time) or "the 64-bit int type" (nanboxing with
REPR_D), and then define everything else automatically.

This simplifies port configuration files.  And the types can still be
overridden if needed.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2025-10-23 15:12:28 +11:00
..
2024-03-07 16:25:17 +11:00

MicroPython embed port

This is a port of MicroPython that outputs a set of .c and .h files for embedding into a wider project. This port essentially targets the C language, instead of a particular hardware architecture or platform.

To use this port in a project there are three main steps:

  1. Provide configuration for the project via an mpconfigport.h file.

  2. Build this embed port against that configuration, using the provided embed.mk. The output is a set of self-contained source files for building MicroPython. These files can be placed outside this repository.

  3. Build the project. This requires compiling all .c files from the above step.

See examples/embedding for an example.