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

jit/x64: make Link() write code to executable memory right away #19

Open
quasilyte opened this issue Feb 15, 2020 · 0 comments
Open

jit/x64: make Link() write code to executable memory right away #19

quasilyte opened this issue Feb 15, 2020 · 0 comments

Comments

@quasilyte
Copy link
Owner

quasilyte commented Feb 15, 2020

  • It's good to avoid excessive []byte -> []byte copying due to the fact that assembler produces a non-executable code first and then it's copied to the destination mapped memory.
  • It can be easier to produce proper relocations. (Needs verification.)

We can just add a io.Writer argument to Link() method because of the API that codegen.Compiler provides (it asks to returns a [][]byte for compiler methods).

@quasilyte quasilyte assigned quasilyte and unassigned quasilyte Feb 15, 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

No branches or pull requests

1 participant