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

Create calling convention for bootstrap4's code #3

Open
mmastrac opened this issue Aug 27, 2018 · 0 comments
Open

Create calling convention for bootstrap4's code #3

mmastrac opened this issue Aug 27, 2018 · 0 comments

Comments

@mmastrac
Copy link
Owner

mmastrac commented Aug 27, 2018

bootstrap4 currently uses an ad-hoc calling convention. After #1 is implemented we could create macros for a function prefix/suffix that would allow us to automatically save and restore a set of registers to the stack on function entry/exit.

There is currently a calling convention in bootstrap5 but that might be too much and too complex for this particular stage. It might be best to just always assume that there are 8 parameters to every function and create the prefix and suffix with that assumption.

This is a pretty big chunk of work as it requires refactoring almost every function in this file.

@mmastrac mmastrac changed the title Create calling convention for bootstrap3 Create calling convention for bootstrap4's code Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant