Commit d43dfdba authored by Kunshan Wang's avatar Kunshan Wang

Fix and document the dumpBundle option.

parent e41570fe
......@@ -189,25 +189,31 @@ Options:
*Sizes may have suffixes K, M, G or T. 1K = 1024 bytes. sosSize, losSize and
globalSize must be a multiple of 32768 bytes (32K).*
- **sosSize**: The size of the small object space in bytes.
- **losSize**: The size of the large object space in bytes.
- **globalSize**: The size of the large object space in bytes.
- **stackSize**: The size of each stack in bytes.
- **staticCheck**: Run static checker after each bundle is loaded. Default: true
- **sosSize**: The size of the small object space in bytes. default: 2M
- **losSize**: The size of the large object space in bytes. default: 2M
- **globalSize**: The size of the large object space in bytes. default: 1M
- **stackSize**: The size of each stack in bytes. default: 60K
- **dumpBundle**: Print out the bundle as text every time a bundle is loaded.
default: false
- **staticCheck**: Run static checker after each bundle is loaded. default: true
- **sourceInfo**: Provide line/column info in Mu IR when errors occur. May be
useful for debugging small Mu IR bundles, but will significantly slow down
parsing!!! Enable only if the bundle is small. Default: false
parsing!!! Enable only if the bundle is small. default: false
- **extraLibs**: Extra libraries to load when starting the micro VM. This is a
colon-separated list of libraries. Each library has the same syntax of the
`path` argument of the `dlopen` system function.
- **bootImg**: The path to the boot image. Only useful in the C API.
`path` argument of the `dlopen` system function. By default, it does not load
any extra libraries.
- **bootImg**: The path to the boot image. Only useful in the C API. By default,
it does not load any boot image.
*Log levels can be: ALL, TRACE, DEBUG, INFO, WARN, ERROR, OFF. Case-insensitive.
Setting to WARN should get rid of most logging information, except the serious
ones.*
ones.* The default log level is DEBUG.
- **vmLog**: The log level of the micro VM.
- **gcLog**: The log level of the garbage collector.
- **vmLog**: The log level of the micro VM (the "uvm" package)
- **gcLog**: The log level of the garbage collector (the "uvm.refimpl.mem"
package). If vmLog is set but gcLog is not, it will use the log level of
vmLog.
## Implementation details
......
......@@ -91,7 +91,7 @@ object VMConfParser {
name = "dumpBundle",
desc = """Dump the bundle when a bundle is loaded.""",
parser = parseBoolean,
default = VMConf.DEFAULT_CONF.staticCheck)
default = VMConf.DEFAULT_CONF.dumpBundle)
val staticCheck = opt[Boolean](
name = "staticCheck",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment