You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

63 lines
2.4 KiB

# Base options for 'duk-low'.
#DUK_USE_REFERENCE_COUNTING: false
#DUK_USE_DOUBLE_LINKED_HEAP: false
DUK_USE_ALIGN_BY: 4
#DUK_USE_ASSERTIONS: true
DUK_USE_LIGHTFUNC_BUILTINS: true
DUK_USE_REFCOUNT16: true
DUK_USE_REFCOUNT32: false
DUK_USE_STRHASH16: true
DUK_USE_STRLEN16: true
DUK_USE_BUFLEN16: true
DUK_USE_OBJSIZES16: true
DUK_USE_HSTRING_CLEN: false
DUK_USE_HSTRING_LAZY_CLEN: true # must be lazy when clen field dropped
DUK_USE_HSTRING_ARRIDX: false
DUK_USE_HOBJECT_HASH_PART: false
DUK_USE_STRTAB_MINSIZE: 128
DUK_USE_STRTAB_MAXSIZE: 128
DUK_USE_STRTAB_SHRINK_LIMIT: 0
DUK_USE_STRTAB_GROW_LIMIT: 65536 # doesn't really matter, high enough not to care
DUK_USE_STRTAB_RESIZE_CHECK_MASK: 63
DUK_USE_STRTAB_PTRCOMP: true
DUK_USE_HEAPPTR16: true
#DUK_USE_FASTINT: true
# Very verbose and slow pointer compression functions. Just for illustration.
#DUK_USE_HEAPPTR_ENC16:
# verbatim: "#define DUK_USE_HEAPPTR_ENC16(ud,p) lowmem_enc16((ud),(p))"
#DUK_USE_HEAPPTR_DEC16:
# verbatim: "#define DUK_USE_HEAPPTR_DEC16(ud,x) lowmem_dec16((ud),(x))"
# Inlined pointer compression functions from duk_alloc_pool.h. The inline
# functions don't need a userdata; instead, they rely on specific link
# symbols (e.g. duk_alloc_pool_ptrcomp_base) being available.
DUK_USE_HEAPPTR_ENC16:
verbatim: "#define DUK_USE_HEAPPTR_ENC16(ud,p) duk_alloc_pool_enc16((p))"
DUK_USE_HEAPPTR_DEC16:
verbatim: "#define DUK_USE_HEAPPTR_DEC16(ud,x) duk_alloc_pool_dec16((x))"
# External strings. Example functions are very slow, just for illustration.
#DUK_USE_EXTSTR_INTERN_CHECK:
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_1((ptr),(len))"
#DUK_USE_EXTSTR_FREE:
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_1((ptr))"
DUK_USE_EXTSTR_INTERN_CHECK:
verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_2((ptr),(len))"
DUK_USE_EXTSTR_FREE:
verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_2((ptr))"
#DUK_USE_EXTSTR_INTERN_CHECK:
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_3((ptr),(len))"
#DUK_USE_EXTSTR_FREE:
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_3((ptr))"
# Execution timeout.
DUK_USE_EXEC_TIMEOUT_CHECK:
verbatim: "#define DUK_USE_EXEC_TIMEOUT_CHECK(udata) lowmem_exec_timeout_check(udata)"
#DUK_USE_ROM_STRINGS: true
#DUK_USE_ROM_OBJECTS: true
#DUK_USE_ROM_GLOBAL_INHERIT: true