From ed2854755395090b36cca2f237cdf61d6dee8e87 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 6 Sep 2022 20:58:12 +0900 Subject: [PATCH] doc/guides/mrbconf.md: updates. --- doc/guides/mrbconf.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/doc/guides/mrbconf.md b/doc/guides/mrbconf.md index 05b7b5cc9..989f8cc73 100644 --- a/doc/guides/mrbconf.md +++ b/doc/guides/mrbconf.md @@ -41,7 +41,7 @@ You can use mrbconfs with following ways: `MRB_STACK_EXTEND_DOUBLING` * If defined doubles the stack size when extending it. -* Else extends stack with `MRB_STACK_GROWTH`. +* Otherwise extends stack with `MRB_STACK_GROWTH`. `MRB_STACK_GROWTH` @@ -64,7 +64,7 @@ You can use mrbconfs with following ways: `MRB_NO_FLOAT` * When defined removes floating-point numbers from mruby. -* It makes mruby easier to handle in "Microcontroller without FPU" and "Kernel Space". +* It makes mruby easier to handle in "Micro-controller without FPU" and "Kernel Space". `MRB_INT32` @@ -172,11 +172,25 @@ largest value of required alignment. ## Other configuration +`MRB_MALLOC_TRIM` + +* call malloc_trim(0) for each mrb_full_gc() call + `MRB_UTF8_STRING` * Adds UTF-8 encoding support to character-oriented String instance methods. * If it isn't defined, they only support the US-ASCII encoding. +`MRB_STR_LENGTH_MAX` + +* The maximum length of strings (default 1MB) +* set this value to zero to skip the check + +`MRB_ARY_LENGTH_MAX` + +* The maximum length of strings (default 1MB) +* set this value to zero to skip the check + `MRB_FUNCALL_ARGC_MAX` * Default value is `16`. @@ -209,3 +223,12 @@ largest value of required alignment. * Make it available `Symbol.all_symbols` in `mrbgems/mruby-symbol-ext` * Increase heap memory usage. + +`MRB_USE_ALL_SYMBOLS` + +* Make it available `Symbol.all_symbols` in `mrbgems/mruby-symbol-ext` +* Increase heap memory usage. + +`MRB_NO_DIRECT_THREADING` + +* Turn off direct threading optimization in VM loop