-
Notifications
You must be signed in to change notification settings - Fork 214
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
Using syscalls and ld script #44
Comments
@cbytensky Looks nice! If you could add some more information to the README about the limitations (OS/portability, etc) and some details about why this reduces binary size (no std or libc bindings etc) I'll add your repo as a reference. |
1. Use
|
2. Use custom build script.2.1. Add
|
3. Using syscalls instead of libcWhen using syscalls there is no need for dynamic linking that significally reduces file size. Example here: https://github.com/cbytensky/hello_syscall |
@cbytensky This is great. Could you add a central README that summarizes this (or a gist) that I could link too that discusses all of your techniques and perhaps has other links to your various subprojects. Ideally, I'd like to see a small discussion about the tradeoffs/limitations of these methods as well. When that's done, I'd be happy to add a link to this in the references section of this repo. |
I made a projet that produces 159-bytes ELF64 AMD64 binary:
https://github.com/cbytensky/hello_syscall
The text was updated successfully, but these errors were encountered: