AtomVM

微型 Erlang 虚拟机。「Tiny Erlang VM」

Github星跟蹤圖

AtomVM

Brings Erlang, Elixir and other functional
languages 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.

Supported Platforms

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

Getting Started

There is much more information, including a more complete
"Getting Started Guide",
extensive documentation,
examples,
detailed build instructions,
and contact information available on the
AtomVM project website.

Don't forget to check out the examples repository to
help get you started on your next IoT project.

Please, use v0.6.x releases, main branch
is for development purposes and it might be unstable.

Dependencies

Required for building:

Documentation and Coverage:

  • gcov and lcov are optionally required to generate coverage report (make coverage).
  • For documentation build requirements consult the Documentation README.

Step-by-Step Build Instructions (generic unix platform)

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./src/AtomVM ./examples/erlang/hello_world.avm

Run tests within build directory with:

$ ./tests/test-erlang
$ ./tests/test-enif
$ ./tests/test-mailbox
$ ./tests/test-structs
$ ./src/AtomVM ./tests/libs/estdlib/test_estdlib.avm
$ ./src/AtomVM ./tests/libs/eavmlib/test_eavmlib.avm
$ ./src/AtomVM ./tests/libs/alisp/test_alisp.avm

Complete Build Instructions are
available in the documentation for
Generic UNIX (Linux, MacOS, FreeBSD),
ESP32,
STM32,
Raspberry Pi Pico
(rp2040), and
WASM (NodeJS/Web).

Project Status

Build and Test

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 a minimal standard library, so several standard functions are missing.
  • Several instructions are not yet implemented.

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

About This Project

This project has been created by Davide Bettio, and now is developed
from a growing number of contributors.

How to Contribute

Any kind of contribution is welcome, you can either contribute to this repository
by improving the virtual machine, the core libraries or the documentation or by contributing to any
of the organization repositories.

License

This project is under the terms of the Apache 2.0 license.

主要指標

概覽
名稱與所有者nickng/dingo-hunter
主編程語言Go
編程語言C (語言數: 4)
平台
許可證Apache License 2.0
所有者活动
創建於2015-08-29 22:05:05
推送於2023-10-11 23:24:50
最后一次提交2023-02-24 22:06:20
發布數2
最新版本名稱v1.0.0 (發布於 2019-01-10 18:37:39)
第一版名稱popl17ae (發布於 )
用户参与
星數319
關注者數16
派生數27
提交數188
已啟用問題?
問題數26
打開的問題數16
拉請求數5
打開的拉請求數3
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?