mirror of https://github.com/tbklang/tlang.git
Utils: GMalloc research+POC #138
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
Dependencies
No dependencies set.
Reference: tlang/tlang#138
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is this?
I am hasty to call this a request for a "standard library" as we are not near that yet, till we get struct support I cannot honestly make that request. There are, however, some pieces of code that can be written in C and linked in via T's
extern
keyword during link time via the system's CC.One of such things is allocator code. Now we can (and probably will) use C Library's
malloc
andfree
but I would like to have our own implementation:What is needed?
On the branch indicated by this issue, we require an implementation of:
malloc(size_t)
(size_t
alias for system's biggest supported unsigned type)free(void*)
@gusmeyer We can discuss ideas here, I will make a branch for you later once we have had a discussion on
mmap()
etc.@gusmeyer Okay all setup!
Use the branch as specified in this issue! It is
research/gmalloc
. Also remember to only use Gitea for issues (ALWAYS push to GitHub).Lastly, it may be useful to track your time. Hit the
Start timer
button when you begin work and hitstop timer
when you end. It racks up time and helps us keep track of progress.See
utils/gmalloc
@gusmeyerUtilsto Utils: GMallocresearch+POCUtils: GMallocresearch+POCto Utils: GMalloc research+POC