Add POSIX and Zephyr platform support for Ocre runtime#70
Merged
Conversation
- Introduced core internal headers and source files for both POSIX and Zephyr platforms, including memory management, threading, mutexes, message queues, timers, and miscellaneous utilities. - Implemented core functions for memory allocation and deallocation using `malloc` and `free` for POSIX, and `k_malloc` and `k_free` for Zephyr. - Developed message queue functionalities with initialization, sending, and receiving capabilities for both platforms. - Created thread management functions to handle thread creation, destruction, and execution for both environments. - Added timer functionalities to support periodic and one-shot timers in the Ocre runtime. - Implemented filesystem operations for Zephyr, including file opening, reading, and directory listing. - Configured CMake build scripts for both platforms, ensuring proper linking and compilation of the Ocre runtime components. - Integrated WAMR (WebAssembly Micro Runtime) support for both platforms, allowing for enhanced execution of WebAssembly modules. Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
srberard
approved these changes
Jul 17, 2025
Collaborator
Author
kr-t
added a commit
that referenced
this pull request
Aug 28, 2025
* Update Readme (#71) * Update MAINTAINERS.md (#73) * Refactor and stabilize system initialization, messaging, and platform support (#75) * Fix/readme and build script (#74) * fixed native sim run command * resolve input files to absolute paths before build dir change * Update zephyr and wamr to internal staging branch --------- Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com> Signed-off-by: Stephen Berard <srberard@users.noreply.github.com> Signed-off-by: Knox Lively <knox.lively@protonmail.com> Co-authored-by: Stephen Berard <srberard@users.noreply.github.com> Co-authored-by: Knox Lively <knox.lively@protonmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Add POSIX and Zephyr platform support for Ocre runtime
Introduced core internal headers and source files for both POSIX and Zephyr platforms, including memory management, threading, mutexes, message queues, timers, and miscellaneous utilities.
Implemented core functions for memory allocation and deallocation using
mallocandfreefor POSIX, andk_mallocandk_freefor Zephyr.Developed message queue functionalities with initialization, sending, and receiving capabilities for both platforms.
Created thread management functions to handle thread creation, destruction, and execution for both environments.
Added timer functionalities to support periodic and one-shot timers in the Ocre runtime.
Implemented filesystem operations for Zephyr, including file opening, reading, and directory listing.
Configured CMake build scripts for both platforms, ensuring proper linking and compilation of the Ocre runtime components.
Integrated WAMR (WebAssembly Micro Runtime) support for both platforms, allowing for enhanced execution of WebAssembly modules.
Also, please list any issue that this PR is intended to fix.
Fixes issue ocre on linux - objectives, concerns - discussion #35
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested on Zephyr's native_sim and u585, and Linux x86_64
Test Configuration (required):
UbuntuSTM32 U585Checklist: