fix: variable-sized values, heap-allocated arrays (and printCharArray) #28
Reference in New Issue
Block a user
No description provided.
Delete Branch "asm-gen-arrays"
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?
MemLocationnow requires an explicit size, to ensure we always think about it rather than blindly accessing memory.[size(4 bytes), elems(elemSize)...]elemSizeis the MINIMUM required memory for a type (so 4 bytes for int, 1 byte for char and bool, 8 bytes for ptr (arrays and pairs), e.t.c.)elemSizeis 8 bytes because we might not be 100% sure what the type is (erased pairs).Mallocbuilt-in implementation.PrintCharArraybuilt-in for print char arrays.added 1 commit
Compare with previous version
changed title from fix: variable-sized {-items in stack and heap, fully functional-} heap-allocated arrays (and printCharArray) to fix: variable-sized {+values,+} heap-allocated arrays (and printCharArray)
changed the description
changed the description
added 3 commits
Compare with previous version
added 7 commits
bdee6ba7- 1 commit from branchasm-gen808a59f5- feat: almost implemented arrays58df1d7b- refactor: extract Stack, proper register naming and sizes887b9823- fix: variable-sized values, heap-allocated arrays (and printCharArray)507cb7dd- fix: zero-out sub-32 bit expressionsc472c7a6- fix: reserve return pointer and RBP on stack for user func bodiesCompare with previous version
added 1 commit
c0f2473d- test: fix input handling for IOLoop exampleCompare with previous version
mentioned in commit
ada53e518b