拿到錘⼦的我想在微控制器上⾯執⾏ RubyPhoto by Johannes Plenio from Pexels
View Slide
WEB DEVELOPERGAME DEVELOPER࣌ݭ@elct9620
Background
Virtual Machine
In computing, a virtual machine (VM)is an emulation of a computer system.- Wikipedia
Process virtual machines are designed to execute computerprograms in a platform-independent environment.- Wikipedia
CompilerSource CodeExecutable
CompilerSource CodeRuby VM
https://bit.ly/2T4BCiG
Getting Started
https://bit.ly/3ojwEwX
IREP
An intermediate representation (IR) is the data structure orcode used internally by a compiler or virtual machine torepresent source code.- Wikipedia
app.mrbRITE HeaderIREPDebug Section
IREPISEQPoolsSymbolsIREP
mrb_exec
Load Variable
mruby is designed for Embedded System which is Raspberry Pi,but mruby-L1VM's target is run under 1KB RAM
Behind VM
Hardware
Development Board is made software developer easier to buildan application with hardware
The SDK for Development Board usually based on C or C++,which means it is possible to run Golang, Ruby, or Python on it.
The hardest for developers is no hardware knowledge to writetheir driver for their hardware
Hardware Abstraction Layer
https://bit.ly/3kiNzxf
https://bit.ly/3mcdLdu
Conclusion