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

Access Go symbol from PeachPy? #57

Open
dgryski opened this issue Nov 16, 2016 · 3 comments
Open

Access Go symbol from PeachPy? #57

dgryski opened this issue Nov 16, 2016 · 3 comments

Comments

@dgryski
Copy link

dgryski commented Nov 16, 2016

I have a data table (512 uint64s) that I'd like to be able to index from PeachPy. It is possible to access a global Go symbol via the SB pseudo-register?

My work-around at the moment is to pass the table as an extra slice to my function.

@Maratyszcza
Copy link
Owner

No, this is not supported

@dgryski
Copy link
Author

dgryski commented Dec 5, 2016

I wonder if a GlobalVariable class that would emit symbols to be resolved by the linker would be useful?

@Maratyszcza
Copy link
Owner

This is hard to implement in a portable manner, so I'll leave this feature for distant future.

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

2 participants