circuitpython/ports/embed
SiZiOUS f67a370311 embed/port: Fix alloca include for Windows platforms.
When building the embedded port on MinGW-w64, I receive the following
error:

    fatal error: alloca.h: No such file or directory

MinGW-w64 (used on MSYS2) doesn't include `alloca.h`, but `alloca()` is
provided via `malloc.h` instead.  And this fix is also needed for other
Windows build systems.

Signed-off-by: SiZiOUS <sizious@gmail.com>
2025-08-01 12:01:37 +10:00
..
port embed/port: Fix alloca include for Windows platforms. 2025-08-01 12:01:37 +10:00
embed.mk all: Prune trailing whitespace. 2024-03-07 16:25:17 +11:00
README.md embed: Add new "embed" port which builds a simple C package. 2023-01-20 22:28:50 +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.