Takashi Kawai
/
Nucleo_blink_led_for_mrubyc
This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.
Embed:
(wiki syntax)
Show/hide line numbers
vm_config.h
Go to the documentation of this file.
00001 /*! @file 00002 @brief 00003 Global configration of mruby/c VM's 00004 00005 <pre> 00006 Copyright (C) 2015 Kyushu Institute of Technology. 00007 Copyright (C) 2015 Shimane IT Open-Innovation Center. 00008 00009 This file is distributed under BSD 3-Clause License. 00010 00011 00012 </pre> 00013 */ 00014 00015 #ifndef MRBC_SRC_VM_CONFIG_H_ 00016 #define MRBC_SRC_VM_CONFIG_H_ 00017 00018 /* maximum number of VMs */ 00019 #ifndef MAX_VM_COUNT 00020 #define MAX_VM_COUNT 5 00021 #endif 00022 00023 /* maximum size of registers */ 00024 #ifndef MAX_REGS_SIZE 00025 #define MAX_REGS_SIZE 100 00026 #endif 00027 00028 /* maximum size of callinfo (callstack) */ 00029 #ifndef MAX_CALLINFO_SIZE 00030 #define MAX_CALLINFO_SIZE 100 00031 #endif 00032 00033 /* maximum number of objects */ 00034 #ifndef MAX_OBJECT_COUNT 00035 #define MAX_OBJECT_COUNT 400 00036 #endif 00037 00038 /* maximum number of classes */ 00039 #ifndef MAX_CLASS_COUNT 00040 #define MAX_CLASS_COUNT 20 00041 #endif 00042 00043 /* maximum size of symbol table */ 00044 #ifndef MAX_SYMBOLS_SIZE 00045 #define MAX_SYMBOLS_SIZE 400 00046 #endif 00047 00048 /* maximum number of symbols */ 00049 #ifndef MAX_SYMBOLS_COUNT 00050 #define MAX_SYMBOLS_COUNT 200 00051 #endif 00052 00053 /* maximum size of global objects */ 00054 #ifndef MAX_GLOBAL_OBJECT_SIZE 00055 #define MAX_GLOBAL_OBJECT_SIZE 20 00056 #endif 00057 00058 /* maximum size of consts */ 00059 #ifndef MAX_CONST_COUNT 00060 #define MAX_CONST_COUNT 20 00061 #endif 00062 00063 00064 /* Configure environment */ 00065 /* 0: NOT USE */ 00066 /* 1: USE */ 00067 00068 /* USE Float. Support Float class */ 00069 //#define MRBC_USE_FLOAT 1 00070 00071 /* USE String. Support String class */ 00072 #define MRBC_USE_STRING 1 00073 00074 00075 #endif 00076
Generated on Tue Jul 12 2022 23:36:30 by 1.7.2