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

Drop the dependency on libelf #12

Open
jserv opened this issue Dec 7, 2023 · 0 comments
Open

Drop the dependency on libelf #12

jserv opened this issue Dec 7, 2023 · 0 comments

Comments

@jserv
Copy link
Owner

jserv commented Dec 7, 2023

At present, libelf is used for parsing and reading given ELF files, but it is a bit heavy. Measuring on Ubuntu Linux 20.04, the stripped libelf occupies 107KB in file size, while the stripped rv32jit executable (AsmJit is statically linked into rv32jit) is 280KB in size. Since we do not need the full functionality of libelf, we can follow the approach that rv32emu uses to deal with ELF files. This involves implementing the necessary facilities on our own, without the need for external libraries such as libelf. This issue is about dropping the libelf dependency.

@jserv jserv changed the title Drop the Dependency on libelf Drop the dependency on libelf Dec 7, 2023
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