Conversation
Collaborator
homka122
commented
Nov 10, 2025
- Add own malloc function and heap
- Add garbage collector for own malloc
- Improve printing debug messages
- Now numbers are tagged
-
- Change arithmetic operations with tagged numbers
- Runtime now change tagged numbers to naive version by own
- Add tests for garbage collector
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
https://en.wikipedia.org/wiki/X_macro Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
Signed-off-by: homka122 <kombaev02@gmail.com>
homka122
commented
Nov 10, 2025
| ; "print_int", print_int_s | ||
| ; "print_gc_status", print_gs_status_s | ||
| ; "gc_collect", gc_collect_s | ||
| ; "clear_regs", clear_regs_s |
Collaborator
Author
There was a problem hiding this comment.
ΠΡΠΎ ΠΎΡΡΠ°Π»ΠΎΡΡ Π»ΠΈΡΠ½ΠΈΠΌ ΡΠ΄Π°Π»Ρ
Comment on lines
+300
to
+304
| @ [ srai (T 0) (T 0) 1 | ||
| ; srai (T 1) (T 1) 1 | ||
| ; add dst (T 0) (T 1) | ||
| ; slli dst dst 1 | ||
| ; ori dst dst 1 |
Collaborator
Author
There was a problem hiding this comment.
ΡΡΠΎ Π½Π°ΠΈΠ²Π½Π°Ρ Π²Π΅ΡΡΠΈΡ, Π΅ΡΡΡ ΠΎΠΏΡΠΈΠΌΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ ΠΏΠΎ ΡΠ»Π°ΠΉΠ΄Ρ, ΠΏΠ΅ΡΠ΅Π΄Π΅Π»Π°Ρ
| | CApp (ImmVar "print_gc_status", ImmConst Unit_lt, []) -> | ||
| [ call "print_gc_status" ] |> return | ||
| | CApp (ImmVar "gc_collect", ImmConst Unit_lt, []) -> [ call "gc_collect" ] |> return | ||
| | CApp (ImmVar "clear_regs", ImmConst Unit_lt, []) -> [ call "clear_regs" ] |> return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.