frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Supreme Court Blocks National Guard Deployment to Chicago Area [pdf]

https://www.supremecourt.gov/opinions/25pdf/25a443_ba7d.pdf
1•JumpCrisscross•36s ago•0 comments

When knowing how to code is not enough

https://iurysouza.dev/agentic-coding-and-context-engineering/
1•iury-sza•2m ago•0 comments

Predictions for 2026

https://twitter.com/ttunguz/status/2003249842127057262
1•baxtr•3m ago•0 comments

You don't need Elasticsearch: BM25 is now in Postgres

https://www.tigerdata.com/blog/you-dont-need-elasticsearch-bm25-is-now-in-postgres
1•soheilpro•5m ago•0 comments

Citadel to return $5B in profit to investors, source says

https://www.cnbc.com/2025/12/23/citadel-to-return-5-billion-in-profit-to-investors-source-says.html
1•samaysharma•6m ago•0 comments

Show HN: A holiday-themed text-based adventure game played over MCP

https://gricha.dev/happyholidays
1•Gricha•7m ago•0 comments

Static Allocation for Compilers

https://matklad.github.io/2025/12/23/static-allocation-compilers.html
1•enz•7m ago•0 comments

Trofim Lysenko

https://en.wikipedia.org/wiki/Trofim_Lysenko
1•Gravityloss•9m ago•0 comments

Built a photo to coloring page+puzzle tool. Need help picking with paying niche

https://reliveincolor.com/
1•dtyutyunik•11m ago•1 comments

Fears

https://jens.mooseyard.com/2015/05/12/fears/
1•andsoitis•16m ago•0 comments

Quick Guide to Hardware Prototyping

https://www.deepseadev.com/en/blog/hardware-prototyping-guide/
2•andsoitis•20m ago•0 comments

Whole Building Design Guide

https://www.wbdg.org/
1•mmooss•21m ago•1 comments

They made me an offer I couldn't refuse (1997)

https://jens.mooseyard.com/1997/04/13/they-made-me-an-offer-i-couldnt-refuse/
1•classichasclass•22m ago•0 comments

ARC-AGI 2: Poetiq reaches 75% at less $8 / task

https://twitter.com/poetiq_ai/status/2003546910427361402
3•dimtion•24m ago•0 comments

Useful Agentic Workflows

https://davidgasquez.com/useful-agentic-workflows-2025/
1•kalendos•27m ago•0 comments

Show HN: SafeSnipe AI – Rug pull detector for Solana meme coins

https://automated-alpha-app.netlify.app
1•botbuilder•29m ago•0 comments

Neuromorphic Hardware Guide

https://open-neuromorphic.org/neuromorphic-computing/hardware/
4•andsoitis•31m ago•0 comments

Show HN: Agentica – 200 reqs/day for free, data not used to train our LLMs

https://agentica.genlabs.dev
2•GenLabs-AI•35m ago•0 comments

Pion 4.2.0, 69 Contributors, Rack SCTP – ICE Renomination – Cryptex – FlexFEC

https://github.com/pion/webrtc/releases/tag/v4.2.0
2•joeturki•36m ago•0 comments

Microspeak: North Star – The Old New Thing (2015)

https://devblogs.microsoft.com/oldnewthing/20151103-00/?p=91861
9•rbanffy•37m ago•1 comments

Ask HN: What did you lose forever because you had no backup?

5•postit•37m ago•1 comments

Cursor for Excel

https://paneapp.com
1•rbajp•39m ago•0 comments

How the Grinch Stole Metrics

https://web.eecs.umich.edu/~tpkelly/grinch.html
1•underscoreF•43m ago•0 comments

Show HN: A lightweight ad blocker Chrome extension I built

https://chromewebstore.google.com/detail/free-blocker-ad-blocker-a/ajmonbkfjffgdhhacjmlkfpdpbfnaeon
1•SahilAdBlocker•46m ago•0 comments

Do LSPs make coding agent output better?

https://www.nuanced.dev/blog/evaluating-lsp
1•jmvldz•46m ago•0 comments

Engineering Strategy Beyond Tech and Control

https://learnings.aleixmorgadas.dev/p/engineering-strategy-beyond-tech
1•mooreds•50m ago•0 comments

RCX Codex v1.0: A pre-axiomatic framework for recursive structure and paradox

https://zenodo.org/records/18039971
1•jabramsja•51m ago•0 comments

An Interview with Brian Baker

https://ciamweekly.substack.com/p/an-interview-with-brian-baker
1•mooreds•52m ago•0 comments

How to revive your love of books

https://apnews.com/article/reading-for-pleasure-routine-library-books-booktok-4ccb7acd24ad890bf0b...
1•mooreds•52m ago•0 comments

Neutral Atom Quantum Computing: 2026's Big Leap

https://spectrum.ieee.org/neutral-atom-quantum-computing
1•rbanffy•53m ago•0 comments