45

GitHub - bettio/AtomVM: Tiny Erlang VM...

 5 years ago
source link: https://github.com/bettio/AtomVM
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.Md

:アトムVM

Brings meme languages AESTHETICS to really small systems.

AtomVM implements from scratch a minimal Erlang VM that supports a subset of ErlangVM features and that is able to run unmodified BEAM binaries on really small systems like MCUs.

Dependencies

This software has been mainly tested with GCC (7.2.0 on Linux), but it also works with clang (tested with clang 4.0.1).

Supported Platforms

  • Linux
  • ESP32 SoC (with IDF and FreeRTOS software platforms, see README.ESP32.Md)

AtomVM aims to be easily portable to a new platform with a minimum effort, so more platforms might be supported in a near future.

Getting Started (on Linux)

$ cmake .

$ make

$ ./src/AtomVM hello_world.beam

Project Status

AtomVM is still in its early stages, but it can run simple applications similar to those available in examples and tests. AtomVM might crash with a similar message:

Undecoded opcode: 15
Aborted (core dumped)

This basically means that an instruction has not been implemented yet, or that an outdated version has been used. Please, make sure to always run AtomVM using latest version.

Known limitations

This project is a work in progress, so there are several known limitations, that will prevent to run unmodified software, some of them are:

  • There is no standard library right now, so every application needs to have some copy&paste boilerplate.
  • Several instructions are not yet implemented.
  • Maps are not yet supported.
  • Binaries are still poorly supported.
  • External term format is poorly supported.

All of these limitations are going to be fixed in a reasonable amount of time.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK