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

lcc: align stack items to word boundaries #65

Open
kervinck opened this issue May 9, 2019 · 2 comments
Open

lcc: align stack items to word boundaries #65

kervinck opened this issue May 9, 2019 · 2 comments

Comments

@kervinck
Copy link
Owner

kervinck commented May 9, 2019

The C data stack typically lives in $400..$5ff and can therefore cross a page boundary. If an int-sized variable or function argument happens to be split over these pages, accessing it with DEEK/DOKE will give the wrong result because these instructions wrap around the page. This can be prevented by aligning int-sized variables to 2-byte boundaries.

@kervinck kervinck added the bug label May 9, 2019
@kervinck
Copy link
Owner Author

Low priority

@kervinck kervinck added the low label Jun 4, 2019
@lb3361
Copy link
Contributor

lb3361 commented Aug 25, 2022

Suggesting to close this issue since glcc handles stack alignment in a finer way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants