This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.
Dependencies:
mbed
« Back to documentation index
vm.h File Reference
mruby bytecode executor.
More...
Go to the source code of this file.
Functions
mrb_irep * new_irep (mrb_vm *vm)
Allocate new IREP.
struct VM * vm_open (void)
VM initializer.
void vm_close (struct VM *vm)
VM finalizer.
void vm_boot (struct VM *vm)
Boot the VM.
int vm_run (struct VM *vm)
Fetch a bytecode and execute.
static uint32_t bin_to_uint32 (const void *s)
Get 32bit value from memory big endian.
static uint16_t bin_to_uint16 (const void *s)
Get 16bit value from memory big endian.
Detailed Description
mruby bytecode executor.
Copyright (C) 2015 Kyushu Institute of Technology.
Copyright (C) 2015 Shimane IT Open-Innovation Center. This file is distributed under BSD 3-Clause License. Fetch mruby VM bytecodes, decode and execute.
Definition in file vm.h .
Function Documentation
static uint16_t bin_to_uint16
(
const void *
s )
[static]
Get 16bit value from memory big endian.
Parameters:
Returns: 16bit unsigned value.
Definition at line 125 of file vm.h .
static uint32_t bin_to_uint32
(
const void *
s )
[static]
Get 32bit value from memory big endian.
Parameters:
Returns: 32bit unsigned value.
Definition at line 105 of file vm.h .
mrb_irep* new_irep
(
mrb_vm *
vm )
Allocate new IREP.
Parameters:
Returns: Pointer of new IREP.
Definition at line 1192 of file vm.c .
void vm_boot
(
struct VM *
vm )
Boot the VM.
Parameters:
Definition at line 1254 of file vm.c .
void vm_close
(
struct VM *
vm )
VM finalizer.
Parameters:
Definition at line 1239 of file vm.c .
struct VM* vm_open
(
void
)
[read]
VM initializer.
Get a VM from static heap.
Returns: Pointer of struct VM in static area.
init_static();
struct VM *vm = vm_open ();
Definition at line 1212 of file vm.c .
int vm_run
(
mrb_vm *
vm )
Fetch a bytecode and execute.
Parameters:
Return values:
Definition at line 1278 of file vm.c .