frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Partial Operator Precedence

https://ziglang.org/devlog/2026/#2026-10-24
1•ErenayDev•1m ago•0 comments

Buy into the Emacs Platform (2018)

https://entropicthoughts.com/why-you-should-buy-into-the-emacs-platform
1•Tomte•2m ago•0 comments

Nops: Read SOPS-encrypted secrets in .NET without the sops binary

https://github.com/atulmish/Nops
1•atulmish•3m ago•0 comments

We're heading past 1.5°C

https://pearlsandirritations.com/post/2026/09/were-heading-past-1-5c-now-we-need-a-plan-for-what-...
1•Betelbuddy•6m ago•0 comments

Open Source Charging Monitor for Android

https://markprovan.github.io/watts/
1•markprovan•7m ago•0 comments

Show HN: EdgePad – tool for configuring edge touchpad gestures on Linux laptops

https://github.com/assembledev/edgepad
3•dev-e•20m ago•0 comments

Covely – An offline personal finance app for Mac, Windows and Linux

https://covelyapp.com/
2•sunnyy02•28m ago•0 comments

Who to build for, now that vibecoding makes software cheap

https://eighttrigrams.net/post/87
2•eighttrigrams•33m ago•0 comments

New Spencerian Compendium

https://archive.org/details/NewSpencerianCompendium
3•Bluestein•44m ago•0 comments

Posthuman Mimesis

https://criticalposthumanism.net/posthuman-mimesis/
2•jruohonen•44m ago•0 comments

fheroes2: A recreation of Heroes of Might and Magic II game engine

https://github.com/ihhub/fheroes2
10•tosh•51m ago•0 comments

Bye Bye Brotli? Google's Compression Library Is a Security Mess

https://www.bugsink.com/blog/bye-bye-brotli/
4•vanschelven•53m ago•2 comments

Lindt got chocolate price hikes wrong, chairman says after CEO's ouster

https://www.reuters.com/business/retail-consumer/lindt-got-chocolate-price-hikes-wrong-chairman-s...
3•geox•54m ago•2 comments

From World-Wide Web to Super-Brain (1995)

https://pespmc1.vub.ac.be/SUPBRAIN.html
2•jruohonen•1h ago•0 comments

"This American Life" Reveals Coca-Cola's Secret Recipe (Ingredient List) (2011)

https://www.cbsnews.com/news/this-american-life-reveals-coca-colas-secret-recipe-full-ingredient-...
4•Bluestein•1h ago•0 comments

Balloting has completed for C++26. Unfortunately it was Disapproved

https://www.linkedin.com/posts/robertseacord_balloting-has-completed-for-c26-unfortunately-activi...
2•birdculture•1h ago•0 comments

Researchers identify the main factors in pornography use among adolescents

https://diaridigital.urv.cat/en/researchers-identify-the-main-factors-in-pornography-use-among-ad...
2•giuliomagnifico•1h ago•0 comments

An open, structured taxonomy of what children learn across the primary years

https://github.com/withmarbleapp/os-taxonomy
1•jinqueeny•1h ago•0 comments

The Years We Can't Hire Back

https://yusufaytas.com/the-years-we-cannot-hire-back
8•yusufaytas•1h ago•2 comments

Show HN: Clara – a decision model that returns a probability for every answer

https://api.saanora.com/docs
1•AKSaathwik•1h ago•0 comments

Samsung running a TensorFlow lite model on 960x540 image to track you

https://twitter.com/mike64_t/status/2114150399406202896
44•mashally•1h ago•18 comments

Abstraction Fatigue

https://shubhamjain.co/2026/10/15/abstraction-fatigue/
1•shubhamjain•1h ago•0 comments

Jev-style decisions for IMAGES: Fovea-4B, open 4B, one forward pass

https://huggingface.co/Sivasuthan/fovea-4b
1•sivasuthansukum•1h ago•0 comments

CVE-2026-107891: musl Libc Integer Overflow in regcomp Leading to Heap Issues

https://www.openwall.com/lists/oss-security/2026/10/21/18
1•birdculture•1h ago•0 comments

The Commentapocalypse Is Nigher

https://lars.ingebrigtsen.no/2026/10/24/the-commentapocalypse-is-nigher/
4•theshrike79•1h ago•0 comments

Djedi Project

https://en.wikipedia.org/wiki/Djedi_Project
1•stein1946•1h ago•0 comments

Show HN: A TUI shared Moon where you can chat with developers and scientists

https://github.com/SorBalda/philosophic-moon
2•sorbalda•1h ago•0 comments

Rivian buys startup to turn 400,000 daily clips into 3D sims

https://electrek.co/2026/10/23/rivian-third-dimension-acquisition-self-driving-simulation/
1•cisc•1h ago•0 comments

Show HN: Where does my tax go? A UK tax receipt calculator (2026/27)

https://wheredoesmytaxgo.co.uk/
2•heyiamluke•1h ago•0 comments

Show HN: Echoboard where AI agents do science and humans only watch

https://jevontane.com/echoboard/
1•jevontane•1h ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y ago
I'd like to do some statistics over the machine code gcc generates, such as a histogram of used instructions, average volatile/preserved registers usage of functions etc. For now just x86_64 SysV-ABI would be enough.

However I'm not aware of any pre-existing tool that lets me easily do this. The options I currently see are either make gcc output assembly and write a parser for the GNU Assembler format (possibly by reusing the asm-parser of the compiler-explorer project), or write a tool that reads (disassembles) object files directly using elfutils.

Any hints, prior work, further ideas, links to useful resources, or any other kind of help would be much appreciated.

Comments

baobun•1y ago
"Static analysis" should be a relevant search term. Assuming you don't need to tie the instructions back to C code then the "gcc" part seems circumstancial for implementation? I guess you might want to parse the ASM into an Abstract Syntax Tree (AST) represenation and work on that?

If you do want to tie it back to the source, this looks relevant: http://icps.u-strasbg.fr/~pop/gcc-ast.html

phafu•1y ago
For my purpose I don't need to get back to the original source, no.

The gcc part is only relevant with regards to what dialect of assembler I need to parse. If I go that route, I'd write a parser for the GNU assembler, and that would of course work with any code in that dialect, regardless from which compiler it came from (I haven't checked whether other compilers can produce GNU assembler though).