-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace fixed size blocks with linked list
This adjustment enables compilation to use as much blocks as the compilation needs instead of allocating huge fixed-size array for block structures to store, not only saves memory when compiling small programs, but also prevents potential insufficient allocation issues in the future work. This improves significantly while compiling small programs. For example, compiling "tests/hello.c" previously takes roughly 224.528 mb, while this patch reduces to roughly 51.852 mb.
- Loading branch information
1 parent
95a55e7
commit e22f595
Showing
3 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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