一个紧凑,可嵌入的脚本引擎,用于应用程序和用于执行JavaScript语言子集编写的程序的微控制器.
Microvium is a tiny JavaScript engine (less than 16kB compiled size) for microcontrollers for running a small but useful subset of the JavaScript language. The runtime engine is portable C code and easy to integrate.
Microvium takes the unique approach partially running the JS code at build time and deploying a snapshot, which leads to a number of advantages over other embedded JavaScript engines. See concepts.md.
Take a look at my blog (coder-mike.com) and Twitter account (@microvium) if you're interested in some of the behind-the-scenes thought processes and design decisions, and to stay updated with new developments.
See also microvium.com where an installer can be downloaded (for Windows only, at this time, and this is a bit out of date -- but contact me if you want the updated version).
Check out the Getting Started tutorial which explains the concepts, gives some examples, and shows how to get set up.
See also the set of supported language features.
fopen or printf.There are a few similar alternatives floating around but Microvium takes a unique approach (see Alternatives).
A Microvium VM cannot exceed 64 kB of ROM and/or RAM.
There is no standard library and only a subset of JavaScript is currently supported.
Microvium can be used in 3 ways:
npm install -g microvium globally will install a CLI that runs microvium scripts (and by default produces a snapshot of the final state, in case you want to deploy it)
npm install microvium will install Microvium as an npm library with TypeScript definitions. This is useful if you want to run Microvium on a custom node.js host and control the snapshotting and host API yourself.
Integrate microvium.c into your C or C++ project to resume execution of a snapshot.
See Getting Started which walks you through all 3 of these.
Check out ./doc/contribute.md.
暂无开放 Issues,或尚未同步最近议题。