frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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).

Slow, Then Suddenly

https://frantic.im/suddenly/
1•speckx•39s ago•0 comments

Dola-Seed-2.0-Preview debuts at #6 on arena.ai

https://seed.bytedance.com/en/blog/dola-seed-2-0-preview-model-release-on-arena
1•elahieh•1m ago•0 comments

Cartography Now Maps Permissions Across All 3 Clouds: My LFX Mentorship Journey

https://cartography.dev/blog/gcp-and-azure-rpr
1•alexchantavy•4m ago•0 comments

Show HN: Sira,an AI native flight booking experience

https://www.travelwithsira.com/
1•malwaregeeeek•4m ago•0 comments

German Social Democrat paper adds to calls for social media curbs for children

https://www.reuters.com/sustainability/society-equity/german-social-democrat-paper-adds-calls-soc...
1•1vuio0pswjnm7•5m ago•0 comments

Did We See a Black Hole Explode in 2025? [video]

https://www.youtube.com/watch?v=sbqrjBZwgLQ
1•jmward01•6m ago•0 comments

Microscope super-resolution with an LED array and Fourier Ptychography [video]

https://www.youtube.com/watch?v=9KJLWwbs_cQ
2•newpavlov•6m ago•0 comments

I Language

https://github.com/IbrahimHindawi/I
1•VoidLegend•7m ago•1 comments

Should Drug Companies Be Advertising to Consumers?

https://www.nytimes.com/2026/02/16/health/drug-advertisements-consumers.html
2•shpat•7m ago•0 comments

Unexplained 217K visits to my website. HOW?

1•ClaudeGustav2•8m ago•1 comments

The Economics of LLM Inference

https://mlechner.substack.com/p/the-economics-of-llm-inference-batch
2•armcat•8m ago•0 comments

Ford CEO, Trump Officials Discussed China-US Carmaking Joint Ventures

https://www.bloomberg.com/news/articles/2026-02-13/ford-ceo-trump-officials-discussed-china-us-ca...
4•breve•8m ago•0 comments

So addictive that it leads to trial: Social media takes the stand

https://english.elpais.com/usa/2026-01-29/so-addictive-that-it-leads-to-trial-social-media-takes-...
1•1vuio0pswjnm7•9m ago•0 comments

Rise of the Triforce

https://dolphin-emu.org/blog/2026/02/16/rise-of-the-triforce/
1•max-m•11m ago•0 comments

A/B Testing Your RAG Pipeline

https://www.rasha.me/blog/rag-pipeline-claude-code-agent-teams
1•jonaylor89•14m ago•0 comments

Vibe migrating 1k pages and losing 80 percent of our traffic

https://www.hopsworks.ai/post/vibe-migrating-1k-pages-and-losing-80-percent-of-our-traffic
1•LexSiga•15m ago•0 comments

ClawWork: OpenClaw as Your AI Coworker

https://github.com/HKUDS/ClawWork
1•ms7892•19m ago•0 comments

Study: Self-generated Agent Skills are useless

https://arxiv.org/abs/2602.12670
5•mustaphah•20m ago•0 comments

ID Token Nicer

https://anddata.substack.com/p/id-token-nicer
1•allusernamesare•21m ago•0 comments

Show HN: Wildex – we built Pokémon Go for real wildlife

https://apps.apple.com/us/app/wildex-identify-plants-animals/id6748092158
7•AnujNayyar•23m ago•0 comments

Show HN: Free Alternative to Wispr Flow, Superwhisper, and Monologue

https://github.com/zachlatta/freeflow
15•zachlatta•25m ago•2 comments

Data 101 for Business Leaders (Operator-Focused, No Mumba-Jumba Jargon)

https://www.datadrip.com/blog/why-were-launching-data-101-and-why-most-companies-misunderstand-data
1•datadripsol•25m ago•1 comments

Nothing bad is going to happen – junkie [video]

https://www.youtube.com/watch?v=_N4z1H6csSs&list=RD_N4z1H6csSs
1•marysminefnuf•26m ago•0 comments

Npx Build-Skill

https://www.npmjs.com/package/build-skill
3•flashbrew•26m ago•2 comments

Show HN: Twsla – A tiny, high-speed log analyzer written in Go

https://github.com/twsnmp/twsla
1•twsnmp•30m ago•2 comments

Obituary for Robert Duvall

https://www.theguardian.com/film/2026/feb/16/robert-duvall-actor-passion-conviction
4•Archelaos•35m ago•0 comments

Has NASA set another prelaunch test after delay? Latest on Artemis

https://www.usatoday.com/story/news/nation/2026/02/16/nasa-artemis-2-rocket-launch/88646242007/
2•bookmtn•35m ago•0 comments

Baby #2, no job, + tradeoffs and prioritizing

https://www.sonyasupposedly.com/baby-2-no-job-tradeoffs-prioritizing/
3•exolymph•38m ago•0 comments

Claude Cowork

https://pvieito.com/2026/01/inside-claude-cowork
3•tin7in•38m ago•0 comments

The One Woman Anthropic Trusts to Teach AI Morals

https://www.wsj.com/tech/ai/anthropic-amanda-askell-philosopher-ai-3c031883
4•jdkee•41m ago•2 comments