Skip to content

Dylink example #914

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

Closed

Conversation

sampaioletti
Copy link

Here is an example with dynamic linking. I had to revise some of the relocatable branch, specifically after playing with it I was having better results when i went to absolute pointers.

The example is working, including passing strings and classes between relocatable modules, which really makes me excited about the viability of this.

Couple thoughts/notes

  • only added support for static strings (missing arrays)
  • toyed with adding a @dynlib decorator instead of using @external, didn't end up including it, but i think it may be how it should be done in the future, so we can implement the rest of the WA dynlink proposal and allow some additional compile time benefits
  • currently 'leaking' but that may be my lack of understanding of rtrace
  • I think a lot of the logic in the linker could be put into a AS module, to reduce the amount of work a linker has to do

@MaxGraey
Copy link
Member

@dcodeIO Could you look at this?

@sampaioletti
Copy link
Author

sampaioletti commented May 17, 2020 via email

@dcodeIO
Copy link
Member

dcodeIO commented May 25, 2020

Closing this PR as part of 2020 vacuum as it states it's rather an example/experiment. But I'd be interested to learn more about the problems with the relocatable branch that you encountered, if you still remember.

@dcodeIO dcodeIO closed this May 25, 2020
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

Successfully merging this pull request may close these issues.

3 participants