Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop dealloc, realloc in XCSL #26

Open
CodyFagley opened this issue Nov 21, 2019 · 1 comment
Open

Develop dealloc, realloc in XCSL #26

CodyFagley opened this issue Nov 21, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists planning Groundwork for further work

Comments

@CodyFagley
Copy link
Member

CodyFagley commented Nov 21, 2019

NOTE: These functions are the easy ones to build.

_xcs_dealloc() and _xcs_realloc() should error check the given values as arguments.

They add commands to the compiled assembly file which store expected arguments in corresponding OS parameter registers. (e.g. x1 - x4)

Afterwards, they call assembly functions like so:

bl  __xcs_alloc   ; Allocate
bl  __xcs_dealloc ; Deallocate
bl  __xcs_realloc ; Reallocate
@CodyFagley CodyFagley assigned CodyFagley and unassigned CodyFagley Nov 21, 2019
@CodyFagley CodyFagley added the planning Groundwork for further work label Nov 21, 2019
@CodyFagley CodyFagley added the duplicate This issue or pull request already exists label Jul 27, 2021
@CodyFagley
Copy link
Member Author

Added Duplicate label, because this has been a persistent issue for 1.5 years now.
Issues for Memory Allocation are piling up and need to be addressed soon for the language development to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists planning Groundwork for further work
Projects
None yet
Development

No branches or pull requests

1 participant