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

Saving recompiled binaries #1000

Closed
alsldlflglhljlk opened this issue Oct 1, 2023 · 3 comments
Closed

Saving recompiled binaries #1000

alsldlflglhljlk opened this issue Oct 1, 2023 · 3 comments

Comments

@alsldlflglhljlk
Copy link

alsldlflglhljlk commented Oct 1, 2023

As far as I know (correct me if I'm wrong), Box86/64 takes the target binary and recompiles it to the target architecture (armhf/64). Is it possible to save the recompiled binary to a file?

This would be useful for debugging purposes and would improve runtime speed.

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 1, 2023

It's not possible for now.

  1. Only used code is compiled, it's not a static recompilation of the whole binary/libs (it's a JIT)
  2. Relocation are tricky and need to be taken into account when doing save

There might be an AOT compiler at some point, but not in the immadiate (less immediate) future.

@alsldlflglhljlk
Copy link
Author

Good to know, though kind of disappointing :( I'll close this issue for now...

@alsldlflglhljlk alsldlflglhljlk closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2023
@ptitSeb
Copy link
Owner

ptitSeb commented Oct 1, 2023

I think it would make more sense to have this as a Discussion instead of an Issue.

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