Git Product home page Git Product logo

benmandrew / omicrob-riot-nrf52 Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 103.14 MB

Tarides Internship Project: OCaml bytecode running on a highly-constrained embedded platform

Home Page: http://www.benmandrew.com/articles/porting-ocaml-to-nrf52

License: Other

Shell 1.62% Makefile 2.27% C 79.37% Python 1.66% Assembly 1.28% C++ 2.95% OCaml 10.44% Roff 0.03% Standard ML 0.02% Awk 0.02% Lua 0.01% Vim Snippet 0.01% SmPL 0.01% M4 0.30% Batchfile 0.02% Perl 0.01%
ocaml nrf52 bytecode embedded cortex-m4 nrf52840 riot-os

omicrob-riot-nrf52's Introduction

omicrob-riot-nrf52

This project gets OCaml bytecode running on the nRF52840 board. It uses OMicroB for the runtime and bytecode optimisation, and RIOT OS for the base layer between the runtime and the board, as well as for its robust build system.

This is an offshoot of ocaml-riot-nrf52, which uses the standard OCaml runtime instead of OMicroB. This led to overly large images as well as issues with dynamic memory allocation that prevented the usage of OCaml modules. ocaml-riot-nrf52 is kept public as it is still useful to learn from.

This project is currently not working, as OMicroB and its dependencies target OCaml 4.07, while I am targeting 4.12. Between 4.07 and 4.12 there was a significant change in the structure of closure environments, which prevents 4.12 bytecode functions from being called by 4.07 OMicroB. Without functions the image is produced correctly, but obviously non-trivial programs need functions.

The projects that need to be updated to 4.12 are:

  • OMicroB
  • OcamlClean
  • OByteLib

Building

git clone https://github.com/benmandrew/omicrob-riot-nrf52.git
cd omicrob-riot-nrf52/omicrob
./configure
make

omicrob-riot-nrf52's People

Contributors

aabadie avatar akshaim avatar basilfx avatar benpicco avatar bergzand avatar cgundogan avatar chrysn avatar cladmi avatar dylad avatar fjmolinas avatar gschorcht avatar haukepetersen avatar jcarrano avatar jeandudey avatar jia200x avatar kaspar030 avatar kb2ma avatar kijewski avatar kyc0o avatar leandrolanzieri avatar lotterleben avatar ludwigknuepfer avatar maribu avatar michelrottleuthner avatar miri64 avatar mrkevinweiss avatar oleghahm avatar peterkietzmann avatar smlng avatar thomaseichinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.