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

The Hater's Guide to Anthropic

https://www.wheresyoured.at/premium-the-haters-guide-to-anthropic/
1•gradus_ad•30s ago•0 comments

Scotiabank Divests from Elbit Systems

https://bdscoalition.ca/2026/02/16/scotiabank-fully-divests-from-elbit-systems/
2•pabs3•1m ago•0 comments

No 10 Am BTC Dump? Bitcoin Price Rallies as Jane Street Trading Draws Attention

https://www.ccn.com/news/crypto/no-10-am-btc-dump-bitcoin-price-rallies-as-jane-street-trading-dr...
1•shin_lao•2m ago•0 comments

Jane Street Hit with Terra $40B Insider Trading Suit

https://www.disruptionbanking.com/2026/02/24/jane-street-hit-with-terra-40b-insider-trading-suit/
1•shin_lao•3m ago•0 comments

The geomechanics of hydrogen storage in salt caverns [pdf]

https://assets.publishing.service.gov.uk/media/68aebcef3a052c9c504c8e60/The_geomechanics_of_hydro...
1•defrost•5m ago•0 comments

How to make LLM native User Interfaces - Post LLM Workflow

https://www.youtube.com/watch?v=F5_mbwUQeCs
1•anditherobot•8m ago•1 comments

Two Beliefs About Coding Agents: Devs Don't Realize What They Bring

https://www.dbreunig.com/2026/02/25/two-things-i-believe-about-coding-agents.html
1•dbreunig•9m ago•0 comments

Why are you still using Vercel?

https://why-vercel.pages.dev/
1•puzle•9m ago•0 comments

Your Move, Claude

https://escapesequence.dev/p/your-move-claude
2•crlfdata•13m ago•0 comments

Bioethics Was Forged in Horror. It Can Be Lost the Same Way

https://thereader.mitpress.mit.edu/bioethics-were-forged-in-horror-they-can-be-lost-the-same-way/
1•EA-3167•13m ago•0 comments

Show HN: ZSE – Open-source LLM inference engine with 3.9s cold starts

https://github.com/Zyora-Dev/zse
2•zyoralabs•13m ago•0 comments

Show HN: Taji – Portfolio advisor that's better than Fidelity's

https://www.taji.is/
2•kevin1chun•18m ago•0 comments

Therapist's Office Is Designed to Make You Cry

https://oedmethod.substack.com/p/your-therapists-office-is-designed
2•truenfel•19m ago•0 comments

The Texas AI boom is outpacing water regulations

https://www.texasobserver.org/texas-ai-data-centers-water-usage-regulation/
1•geox•20m ago•0 comments

I built a client portal for freelancers after the same conversation arised

https://www.retallio.app/
1•nemo30s•21m ago•1 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
2•emschwartz•21m ago•0 comments

Discovering Multiagent Learning Algorithms with Large Language Models

https://arxiv.org/abs/2602.16928
1•gmays•26m ago•0 comments

Postgres Jsonb Columns and Toast: A Performance Guide

https://www.snowflake.com/en/engineering-blog/postgres-jsonb-columns-and-toast/
1•craigkerstiens•29m ago•0 comments

(paper money) Hedge Fund staffed by AI Employees (experiment)

https://platypi.empla.io
1•pokot0•33m ago•1 comments

Show HN: Bloomfilter – A service for AI agents to register and manage domains

https://bloomfilter.xyz/
1•eronmmer•35m ago•1 comments

Examining Bias and AI in Latin America

https://elpais.com/america/lideresas-de-latinoamerica/2026-02-25/genero-racismo-y-xenofobia-asi-s...
1•shakiness3383•35m ago•0 comments

Show HN: WebMCP Core – AI agent tool definitions from any site

https://github.com/keak-ai/webmcp-core
2•eman11•35m ago•0 comments

Tell HN: Cursor has an agent CLI, and it's better than Claude Code

2•melecas•36m ago•1 comments

Anthropic is dropping its signature safety pledge amid a heated AI race

https://www.businessinsider.com/anthropic-changing-safety-policy-2026-2
1•rahulskn86•37m ago•1 comments

Eleven Freedoms for Free AI

https://elevenfreedoms.org/
1•pabs3•40m ago•0 comments

Average Typing Speeds based on 221k user typing sessions

https://www.typequicker.com/average-typing-speed
1•absoluteunit1•42m ago•0 comments

WTF Happened in 2025?

https://wtfhappened2025.com/
4•swyx•45m ago•0 comments

Dead Internet Theory – A Win?

https://medium.com/@brandon_89699/4df2f34cba14
1•Fine-Palp-528•45m ago•1 comments

Open-Source Agent Operating System

https://github.com/RightNow-AI/openfang
3•OsamaJaber•47m ago•1 comments

RAG on a Budget: How I Replaced a $360/Month OpenSearch Cluster for $1.12/Month

https://stephaniespanjian.com/blog/rag-cost-reduction-replaced-opensearch-s3-in-memory-search
2•StephSpanjian•50m ago•1 comments