Skip to content

Initial testing building as C module#36

Merged
jonnor merged 4 commits into
masterfrom
user-module-build
Apr 16, 2025
Merged

Initial testing building as C module#36
jonnor merged 4 commits into
masterfrom
user-module-build

Conversation

@jonnor
Copy link
Copy Markdown
Contributor

@jonnor jonnor commented Apr 14, 2025

The module setup is slightly different for an external C module compared to dyamic native module. But for now it seems that it might be possible to support both ways of building in a rather clean way.

References #18

Depends on emlearn/emlearn#110

@jonnor jonnor force-pushed the user-module-build branch from 0284c26 to 119da09 Compare April 15, 2025 14:19
jonnor added 2 commits April 15, 2025 19:47
For example in micropython/ports/unix
make -j4 USER_C_MODULES=/home/jon/projects/emlearn-micropython/src/

Note that right now there is a -Wdouble-promotion failure in eml_trees.h
Fixes some compile warnigs that are errors in MicroPython user C modules
@jonnor jonnor force-pushed the user-module-build branch from fc7c6cb to 2c12d56 Compare April 15, 2025 17:48
jonnor added 2 commits April 15, 2025 21:33
Right now there are some duplicated symbols from eml_common.h
when built together with emlearn_trees
@jonnor jonnor force-pushed the user-module-build branch from 2c12d56 to d2731f6 Compare April 15, 2025 19:33
@jonnor jonnor changed the title WIP: support building as USER_C_MODULE Initial testing building as C module Apr 16, 2025
@jonnor jonnor merged commit cc273c6 into master Apr 16, 2025
@jonnor jonnor deleted the user-module-build branch April 16, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant