Skip to content

Initial testing building as C module #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2025
Merged

Initial testing building as C module #36

merged 4 commits into from
Apr 16, 2025

Conversation

jonnor
Copy link
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
4 checks passed
@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