https://github.com/missn0body/yup
An exercise into the sizes of binaries, featuring a limited implementation of the UNIX command "yes"
https://github.com/missn0body/yup
assembly-x86 command-line command-line-tool simple small terminal terminal-app terminal-based trivial
Last synced: 6 months ago
JSON representation
An exercise into the sizes of binaries, featuring a limited implementation of the UNIX command "yes"
- Host: GitHub
- URL: https://github.com/missn0body/yup
- Owner: missn0body
- License: mit
- Created: 2024-02-02T06:00:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-07T21:08:00.000Z (over 1 year ago)
- Last Synced: 2025-02-07T12:14:31.754Z (8 months ago)
- Topics: assembly-x86, command-line, command-line-tool, simple, small, terminal, terminal-app, terminal-based, trivial
- Language: Assembly
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yup
A small(er) implementation of the UNIX command "yes",
with very limited functionality. Written by anson in Feb 2024Limited functionality in that all that this program does
is simply print a single character in a loop to stdout.
This program does not take any arguments, and you can not
specify your own string to print at the moment (as of v. 1.0.0).This program is but an exercise in the sizes of executables,
inspired by Brian Raiter's [experiements and journeys into the
creation of super tiny ELF binaries](http://www.muppetlabs.com/~breadbox/software/tiny/),
of which this program at the moment (as of v. 1.0.0) is not an
example of. Nonetheless, I am determined to understand the ELF
standard better. Currently, the size of the binary once assembled
is a little more than 8 kilobytes, which is fine enough. I have
done some optimizations in order to ensure that smaller values
are to be put in smaller registers, and avoiding MOV wherever I can.My goal for this program is to reach sub 1K, or under a thousand
bytes, which I believe is doable. I will update this project with
better/smaller versions when I can understand more. Hopefully.### v. 1.0.0 (First Release)
Feb 2024A small(er) implementation of the UNIX command "yes".
This program does not accept arguments.