Browse Source

Ajduk make/config tweaks

pull/1277/head
Sami Vaarala 8 years ago
parent
commit
794eb5e7f1
  1. 4
      Makefile
  2. 11
      examples/cmdline/duk_cmdline_ajduk.c
  3. 11
      util/makeduk_ajduk.yaml
  4. 1
      util/makeduk_base.yaml

4
Makefile

@ -79,9 +79,9 @@ CONFIGOPTS_NONDEBUG=--option-file util/makeduk_base.yaml
CONFIGOPTS_NONDEBUG_SCANBUILD=--option-file util/makeduk_base.yaml --option-file util/makeduk_scanbuild.yaml
CONFIGOPTS_NONDEBUG_PERF=--option-file config/examples/performance_sensitive.yaml
CONFIGOPTS_NONDEBUG_SIZE=--option-file config/examples/low_memory.yaml
CONFIGOPTS_NONDEBUG_AJDUK=--option-file util/makeduk_base.yaml --option-file util/makeduk_ajduk.yaml --fixup-file util/makeduk_ajduk_fixup.h
CONFIGOPTS_NONDEBUG_AJDUK=--option-file util/makeduk_ajduk.yaml --fixup-file util/makeduk_ajduk_fixup.h
CONFIGOPTS_NONDEBUG_ROM=--rom-support --rom-auto-lightfunc --option-file util/makeduk_base.yaml -DDUK_USE_ROM_STRINGS -DDUK_USE_ROM_OBJECTS -DDUK_USE_ROM_GLOBAL_INHERIT -UDUK_USE_HSTRING_ARRIDX
CONFIGOPTS_NONDEBUG_AJDUK_ROM=--rom-support --rom-auto-lightfunc --builtin-file util/example_user_builtins1.yaml --builtin-file util/example_user_builtins2.yaml -DDUK_USE_ROM_STRINGS -DDUK_USE_ROM_OBJECTS -DDUK_USE_ROM_GLOBAL_INHERIT -UDUK_USE_HSTRING_ARRIDX -DDUK_USE_ASSERTIONS -UDUK_USE_DEBUG
CONFIGOPTS_NONDEBUG_AJDUK_ROM=--rom-support --rom-auto-lightfunc --option-file util/makeduk_ajduk.yaml --fixup-file util/makeduk_ajduk_fixup.h --builtin-file util/example_user_builtins1.yaml --builtin-file util/example_user_builtins2.yaml -DDUK_USE_ROM_STRINGS -DDUK_USE_ROM_OBJECTS -DDUK_USE_ROM_GLOBAL_INHERIT -UDUK_USE_HSTRING_ARRIDX -UDUK_USE_DEBUG
CONFIGOPTS_NONDEBUG_AJDUK_NOREFC=--option-file util/makeduk_base.yaml --option-file util/makeduk_ajduk.yaml --fixup-file util/makeduk_ajduk_fixup.h -UDUK_USE_REFERENCE_COUNTING -UDUK_USE_DOUBLE_LINKED_HEAP
CONFIGOPTS_DEBUG=--option-file util/makeduk_base.yaml --option-file util/makeduk_debug.yaml
CONFIGOPTS_DEBUG_SCANBUILD=--option-file util/makeduk_base.yaml --option-file util/makeduk_debug.yaml --option-file util/makeduk_scanbuild.yaml

11
examples/cmdline/duk_cmdline_ajduk.c

@ -87,7 +87,7 @@ static const AJS_HeapConfig ajsheap_config[] = {
{ 16, 300, AJS_POOL_BORROW, 0 },
{ 20, 300, AJS_POOL_BORROW, 0 },
{ 24, 300, AJS_POOL_BORROW, 0 },
{ 28, 150, AJS_POOL_BORROW, 0 },
{ 28, 250, AJS_POOL_BORROW, 0 },
{ 32, 150, AJS_POOL_BORROW, 0 },
{ 40, 150, AJS_POOL_BORROW, 0 },
{ 48, 50, AJS_POOL_BORROW, 0 },
@ -95,14 +95,17 @@ static const AJS_HeapConfig ajsheap_config[] = {
{ 56, 50, AJS_POOL_BORROW, 0 },
{ 60, 50, AJS_POOL_BORROW, 0 },
{ 64, 50, AJS_POOL_BORROW, 0 },
{ 96, 50, AJS_POOL_BORROW, 0 },
{ 128, 80, AJS_POOL_BORROW, 0 },
{ 200, 1, AJS_POOL_BORROW, 0 }, /* duk_heap, with heap ptr compression, ROM strings+objects */
{ 256, 16, AJS_POOL_BORROW, 0 },
{ 288, 1, AJS_POOL_BORROW, 0 },
{ 320, 1, AJS_POOL_BORROW, 0 },
{ 392, 1, AJS_POOL_BORROW, 0 }, /* duk_hthread, with heap ptr compression, ROM strings+objects */
{ 396, 1, AJS_POOL_BORROW, 0 }, /* duk_hthread, with heap ptr compression, ROM strings+objects */
{ 400, 1, AJS_POOL_BORROW, 0 }, /* duk_hthread, with heap ptr compression, RAM strings+objects */
{ 536, 1, AJS_POOL_BORROW, 0 }, /* duk_heap, with heap ptr compression, RAM strings+objects */
{ 512, 16, AJS_POOL_BORROW, 0 },
{ 964, 1, AJS_POOL_BORROW, 0 }, /* duk_heap, with heap ptr compression, ROM strings+objects */
{ 1024, 6, AJS_POOL_BORROW, 0 },
{ 1344, 1, AJS_POOL_BORROW, 0 }, /* duk_heap, with heap ptr compression, RAM strings+objects */
{ 2048, 5, AJS_POOL_BORROW, 0 },
{ 4096, 3, 0, 0 },
{ 8192, 3, 0, 0 },

11
util/makeduk_ajduk.yaml

@ -12,9 +12,14 @@ DUK_USE_STRLEN16: true
DUK_USE_BUFLEN16: true
DUK_USE_OBJSIZES16: true
DUK_USE_HSTRING_CLEN: false
DUK_USE_STRTAB_PROBE: false
DUK_USE_STRTAB_CHAIN: true
DUK_USE_STRTAB_CHAIN_SIZE: 128
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_HEAPPTR_ENC16:
verbatim: "#define DUK_USE_HEAPPTR_ENC16(ud,p) ajsheap_enc16((ud),(p))"

1
util/makeduk_base.yaml

@ -29,6 +29,7 @@ DUK_USE_SELF_TESTS: true
#DUK_USE_SHUFFLE_TORTURE: true
#DUK_USE_REFZERO_FINALIZER_TORTURE: true
#DUK_USE_MARKANDSWEEP_FINALIZER_TORTURE: true
#DUK_USE_STRTAB_TORTURE: true
#DUK_USE_STRICT_DECL: false
#DUK_USE_REGEXP_SUPPORT: false
#DUK_USE_ES6_REGEXP_SYNTAX: false

Loading…
Cancel
Save