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

Far Pointers #35

Open
DavidPH opened this issue Jan 8, 2019 · 0 comments
Open

Far Pointers #35

DavidPH opened this issue Jan 8, 2019 · 0 comments

Comments

@DavidPH
Copy link
Owner

DavidPH commented Jan 8, 2019

Being able to have a pointer type that crosses address spaces would be potentially useful in edge cases. Currently planning on doing a three-word solution. One word for type, one for the array/string number, and one for the index. Ideally, the index should be pushed last in order to simplify codegen. Overflowing the index will be considered UB.

One issue that stands is the inability to address module arrays, as their addresses are module-specific. A solution to that would be interesting, as it would open up a __mod_ars address space to go with __hub_ars and __gbl_ars. At present, however, I can think of no general solution. Ideas would be appreciated.

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

1 participant