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

[ASR] Dynamic Linking #722

Open
apple1417 opened this issue Sep 14, 2023 · 2 comments
Open

[ASR] Dynamic Linking #722

apple1417 opened this issue Sep 14, 2023 · 2 comments
Labels
auto splitting This is about the auto splitting implementation. feature A new user visible feature for livesplit-core. needs further discussion It is unclear how to progress without making further decisions.

Comments

@apple1417
Copy link

Currently, if you link against libc (or any other standard library), everything needs to be statically included in the same executable. It would be nice to dynamically link instead, so that this code isn't unnecessarily duplicated in every single autosplitter.

@CryZe
Copy link
Collaborator

CryZe commented Sep 14, 2023

wasmtime seems to have a concept for that: https://docs.wasmtime.dev/examples-rust-linking.html

So it seems somewhat doable. I don't know how you would do this from a C compiler perspective. If you figure out some way to do that splitting, then we can look into making it work with wasmtime.

@DarkRTA
Copy link
Contributor

DarkRTA commented Sep 14, 2023

there's the potential for different implementations of libc to have a different ABI despite being otherwise standards compliant (big example is the incompatabilities between musl and glibc)
i also hold the opinion that an auto splitter should come with everything it needs to run barring the runtime itself

@CryZe CryZe added needs further discussion It is unclear how to progress without making further decisions. feature A new user visible feature for livesplit-core. auto splitting This is about the auto splitting implementation. labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto splitting This is about the auto splitting implementation. feature A new user visible feature for livesplit-core. needs further discussion It is unclear how to progress without making further decisions.
Projects
None yet
Development

No branches or pull requests

3 participants