meribold/btry
View on GitHub ↗ ★ 99 Assembly
Battery info program for x86-64 Linux laptops in 307 bytes of machine code
7 mentions on Hacker News by 3 people: 4 stories, 3 comments · first 2023-06-03 · latest 2026-04-09
20082026
-
This commit ( https://github.com/meribold/btry/commit/75cba2be52cc8fbdc72b... ) worked for me !
comment by qcoudeyr · 2026-04-09 · in Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes -
Dell 5440 $ git clone https://github.com/meribold/btry ... $ make as -mx86-used-note=no btry.s -o btry.o objcopy -O binary btry.o btry chmod +x btry $ ./btry Segmentation fault ./btry $ strace -f ./btry execve("./btry", ["./btry"],…
comment by anonymous67453 · 2026-04-09 · in Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes -
…and p_memsz in the program header, which have to be zero [1]. If not, what are the savings? :) [1]: https://github.com/meribold/btry/commit/8ef5a4ce58ae73c489d2...
comment by meribold · 2026-04-09 · in Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes -
▲ 13
Show HN: A (marginally) useful x86-64 ELF executable in 298 bytesstory by meribold · 2026-04-07 · 0 comments
-
▲ 65
Show HN: A (marginally) useful x86-64 ELF executable in 301 bytesstory by meribold · 2026-04-06 · 21 comments
-
▲ 85
Show HN: A (marginally) useful x86-64 ELF executable in 466 bytesstory by meribold · 2024-03-27 · 21 comments
-
▲ 1
Show HN: Battery status program in 110 lines of x86 assemblystory by meribold · 2023-06-03 · 0 comments