diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2024-06-23 08:18:04 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-12-23 10:02:20 +1100 |
commit | 6760e00817ff6cb449134418411850fc577d0f9c (patch) | |
tree | c5d618a92a6504a48c58a8c5517387bf03a0c669 /docs/develop | |
parent | 136058496f05b4b2ab5e63829b301671dc8b9a59 (diff) |
tools/mpy_ld.py: Add native modules support for RV32 code.
This commit adds support for RV32IMC native modules, as in embedding native
code into a self-contained MPY module and and make its exported functions
available to the MicroPython environment.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/develop')
-rw-r--r-- | docs/develop/natmod.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/develop/natmod.rst b/docs/develop/natmod.rst index 502ea1c4c..ba45e4305 100644 --- a/docs/develop/natmod.rst +++ b/docs/develop/natmod.rst @@ -39,7 +39,8 @@ options for the ``ARCH`` variable, see below): * ``armv7emsp`` (ARM Thumb 2, single precision float, eg Cortex-M4F, Cortex-M7) * ``armv7emdp`` (ARM Thumb 2, double precision float, eg Cortex-M7) * ``xtensa`` (non-windowed, eg ESP8266) -* ``xtensawin`` (windowed with window size 8, eg ESP32) +* ``xtensawin`` (windowed with window size 8, eg ESP32, ESP32S3) +* ``rv32imc`` (RISC-V 32 bits with compressed instructions, eg ESP32C3, ESP32C6) When compiling and linking the native .mpy file the architecture must be chosen and the corresponding file can only be imported on that architecture. For more @@ -172,7 +173,7 @@ The file ``Makefile`` contains: # Source files (.c or .py) SRC = factorial.c - # Architecture to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin) + # Architecture to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc) ARCH = x64 # Include to get the rules for compiling and linking the module |