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...