frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: An Interactive Guide to Poker

https://poker.shivs.me
1•sxhivs•39s ago•0 comments

Continue has been acquired by Cursor

https://www.continue.dev/
1•doanbactam•5m ago•0 comments

Show HN: Giving Claude Code and codex its voice using kokoro

https://github.com/softcane/aloud
1•pradeep1177•13m ago•0 comments

Anthropic runs like Wile E. Coyote into the brick wall of consciousness research

https://www.theintrinsicperspective.com/p/anthropic-runs-like-wile-e-coyote
1•RebelPotato•13m ago•0 comments

The Empire Strikes Back

https://scottsumner.substack.com/p/the-empire-strikes-back
1•paulpauper•16m ago•0 comments

A new kind of robot swims the seas and soars the skies

https://www.npr.org/2026/07/09/nx-s1-5885040/robot-flying-aerial-aquatic-mit-birds
1•paulpauper•16m ago•0 comments

Cat Is Being Nice? Think Again

https://www.nytimes.com/2026/07/10/science/cat-grooming-licking-research.html
1•paulpauper•16m ago•0 comments

Australia is offering free daytime electricity

https://lenergy.com.au/free-daytime-electricity-is-coming-heres-how-it-actually-works/
2•i2oc•17m ago•0 comments

TV Time is getting shut down. It's founder is building its replacement

https://www.neowin.net/news/tv-time-is-on-its-last-legs-its-founder-is-already-building-its-repla...
1•bundie•25m ago•0 comments

IronCurtain – A secure* runtime for autonomous AI agents

https://github.com/provos/ironcurtain
1•n0on3•27m ago•0 comments

Show HN: Codex Pet Web – put any Codex pet on any website

https://pets.caro.sh
1•kobi_kadosh•29m ago•0 comments

Hands-On with iOS and iPadOS 27, macOS 27 Golden Gate, and Siri AI

https://eshumarneedi.com/2026/07/13/handson-with-ios-and-ipados.html
1•mindracer•31m ago•0 comments

GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning

https://arxiv.org/abs/2507.19457
3•handfuloflight•36m ago•0 comments

Egypt and Turkey deny LGBTQ+ cruise access to port over immorality

https://www.jpost.com/international/article-902192
1•andsoitis•36m ago•0 comments

Locked Away

https://www.newyorker.com/magazine/2026/07/20/locked-away
3•petethomas•36m ago•0 comments

Built a Chrome extension to organize GitHub stars

https://chromewebstore.google.com/detail/stardeck/cegfcmcniionnghnglfehbdmelffbnan
1•nandanadileep29•39m ago•0 comments

Lawsuit: Man used Grok to make 7K sex images of stepdaughter, then shot himself

https://arstechnica.com/tech-policy/2026/07/lawsuit-grok-user-made-7k-child-sex-images-xai-only-r...
1•philips•42m ago•0 comments

Detection of a four-carbon sugar in interstellar space

https://www.nature.com/articles/s41550-026-02905-7
2•anyonecancode•44m ago•0 comments

US "Normalizing Unmanned Aircraft Systems Bvlos Operations" Rule Moves Closer

https://www.unmannedairspace.info/latest-news-and-information/us-normalizing-unmanned-aircraft-sy...
1•bryanrasmussen•48m ago•1 comments

Why is LinkedIn enumerating my browser extensions?

https://insertchaos.bearblog.dev/the-strange-case-of-an-attack-on-my-browser/
1•snorbleck•51m ago•0 comments

Ongoing changes to Android security patches due to AI vulnerability discovery

https://discuss.grapheneos.org/d/40286-ongoing-changes-to-android-security-patches-due-to-ai-vuln...
2•Cider9986•55m ago•0 comments

Therapists see more young patients with gambling problems. They blame Kalshi

https://laist.com/news/health/la-therapists-are-seeing-more-young-patients-with-gambling-problems...
1•geox•57m ago•0 comments

Android Developer Verifier

https://old.reddit.com/r/degoogle/comments/1uvd1of/everyone_listen/
2•cma•59m ago•0 comments

Every project should have an invariants.md

https://twitter.com/PiccoGabriele/status/2076876444760957440
2•piccogabriele•1h ago•3 comments

Is that bot a Pomeranian or a wolf – and who to sue when it 'bites'?

https://news.harvard.edu/gazette/story/2026/07/is-that-bot-a-pomeranian-or-a-wolf-and-who-to-sue-...
3•rathodravish•1h ago•0 comments

One Contract, Every Model: An Operating Standard for AI Coding Agents

https://manazir.dev/blog/operating-standard-harness
2•mnzralee•1h ago•0 comments

Show HN: Self-hosting unpruned GLM-5.2 on a 4-node DGX Spark cluster

https://github.com/XanuNetworks/GLM-5.2-QuantTrio-DCP-4x-DGX-Spark
2•deepseaOne•1h ago•0 comments

Turbopuffer vs. Manticore Search on a couple of cheap VPS

https://medium.com/@s_nikolaev/turbopuffer-vs-manticore-search-on-a-couple-of-cheap-vps-171c35fe25d9
2•snikolaev•1h ago•0 comments

Show HN: Open-source background location tracking SDK for Android and iOS

https://www.traccar.org/blog/traccar-client-sdk/
2•tananaev•1h ago•0 comments

West Memphis Three

https://en.wikipedia.org/wiki/West_Memphis_Three
2•js2•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).