Replies: 1 comment
-
Also asked at https://langdev.stackexchange.com/q/3857/426 Got insightful answer there. It looks like heap-size-limit due to compressed bit-width of ptrs will still be there, but as Koka tends to allocate nested heaps per supported by mimalloc, it (relative compressed pointers) may be of more value as for Koka? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm interested in the
c64c
target, after seeing:koka/kklib/include/kklib.h
Line 418 in 9f400dd
koka/kklib/include/kklib.h
Lines 926 to 929 in 9f400dd
koka/kklib/include/kklib.h
Lines 956 to 958 in 9f400dd
koka/kklib/src/init.c
Lines 295 to 307 in 9f400dd
Looks like 32-bit "compressed" pointers (thus heaps) will be used on 64-bit systems by opting for the
c64c
target, I wonder how effective it turned out to be, are there benchmarks around this target?Why the design decision to use a
heap_mid
in thread-local context?I'm interested in this, mainly bcoz I'm sketching about "relative" pointers for zero-cost relocatable heaps, i.e. the memory cell would store a pointer value as relative to its own residential address. And the relative pointer values can obviously be "compressed" as well to 32-bit width, for heap-compression purpose.
Has this idea been explored by researchers yet? How would it compare to the already implemented
heap_mid
approach?Beta Was this translation helpful? Give feedback.
All reactions