Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2026 (5)
20082026
  1. This commit ( https://github.com/meribold/btry/commit/75cba2be52cc8fbdc72b... ) worked for me !
  2. 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"],…
  3. …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...
  4. ▲ 13
    Show HN: A (marginally) useful x86-64 ELF executable in 298 bytes
    story by meribold · 2026-04-07 · 0 comments
  5. ▲ 65
    Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
    story by meribold · 2026-04-06 · 21 comments
  6. ▲ 85
    Show HN: A (marginally) useful x86-64 ELF executable in 466 bytes
    story by meribold · 2024-03-27 · 21 comments
  7. ▲ 1
    Show HN: Battery status program in 110 lines of x86 assembly
    story by meribold · 2023-06-03 · 0 comments