Skip to content

Conversation

@basicer
Copy link
Contributor

@basicer basicer commented Sep 14, 2025

No description provided.

@basicer
Copy link
Contributor Author

basicer commented Sep 14, 2025

I haven't had time to work on this for a while, but wanted to share my work in progress.

I wanted to take the same approach here that godot uses for third-party dependencies that godot uses by writing a python script to extract the relevant parts of WAMR and include them directly. This allows the godot build system to just compile the source files and avoid platform specific library linking.

My goal was to try to extract from WAMR the minimum amount of code to support the wasm-c-api's view to the fast interp, dropping as much platform specific code as possible. WAMR currently has a lot of platform specific code for things like mutexes that ideally could be replaced by the c++ standard library for best portability.

Theres also some changes in here that need to be upstreamed to WARM to support the wasm32 build platform.

@basicer basicer changed the title Add Support for WARM Runtime Add Support for WAMR Runtime Sep 15, 2025
@ashtonmeuser
Copy link
Owner

ashtonmeuser commented Sep 17, 2025

Appreciate the peak into this, @basicer! Can you share:

  1. The script used to pull relevant parts of WAMR Found here
  2. A list of the upstream changes to WAMR that would be required

@basicer
Copy link
Contributor Author

basicer commented Sep 20, 2025

I created a PR for the upstream changes here bytecodealliance/wasm-micro-runtime#4639 .

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.

2 participants