frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Show HN: MirrorNeuron – an open-source runtime for reliable on-device AI agents

https://www.mirrorneuron.io/
1•homerquan•27s ago•0 comments

Tesla Never Stopped Developing the Model S [video]

https://www.youtube.com/watch?v=IwnJzP0TlCk
1•CHB0403085482•3m ago•0 comments

The Kissinger Tapes

https://blog.oup.com/2026/04/the-kissinger-tapes/
1•jruohonen•6m ago•0 comments

Selvedge: Capture the why behind AI code changes

https://github.com/masondelan/selvedge
1•masondelan•8m ago•1 comments

Tagging Music with MusicBrainz Picard

https://lwn.net/Articles/1066384/
1•signa11•10m ago•0 comments

Deterministic arcade shooter – same game for everyone, AI coaches your replay

https://gamefilm.org
1•shettysuraj•11m ago•0 comments

The Declining Driver's License: Good, Bad, or Both?

https://maxmautner.com/2026/04/21/teen-drivers-license-decline.html
2•jez•13m ago•0 comments

Show HN: SparseLab–real sparse training(CSR+custom kernel) in PyTorch, CPU-first

https://news.ycombinator.com/from?site=github.com/darshanfofadiya
1•DARSHANFOFADIYA•15m ago•1 comments

Skopx – AI analytics platform with built-in project management

https://skopx.com
1•skopx•16m ago•1 comments

AI GTM plugin for SEO and GEO in Claude Code

https://github.com/zhizdev/overgrow
4•zhizdev•17m ago•0 comments

Writing Matters

https://blog.apaonline.org/2026/04/22/writing-matters/
3•jruohonen•20m ago•0 comments

Private health records of half a million Britons for sale on Chinese Alibaba

https://www.theguardian.com/technology/2026/apr/23/private-health-records-uk-biobank-chinese-webs...
1•0in•20m ago•0 comments

Ask HN: Why are companies so distrustful of remote employees?

2•lyfeninja•26m ago•5 comments

Meta Layoffs – 10% in May

https://www.npr.org/2026/04/23/nx-s1-5797855/meta-layoffs-10-percent-staff
1•dzonga•26m ago•0 comments

How to Win

https://nekolucifer.substack.com/p/how-to-win
2•andai•28m ago•0 comments

Scraped from ancient Roman toilets, remains expose a pathogen found earlier

https://phys.org/news/2026-04-ancient-roman-toilets-crusted-expose.html
1•wglb•30m ago•2 comments

Deploy an Autonomous X Team

https://agentbot.sh
1•Agentbot-esky•31m ago•0 comments

MiMo-v2.5-TTS Series

https://mimo.xiaomi.com/mimo-v2-5-tts/
1•gainsurier•32m ago•0 comments

Physicists revive 1990s laser concept to propose a next-generation atomic clock

https://phys.org/news/2026-04-physicists-revive-1990s-laser-concept.html
1•wglb•34m ago•1 comments

Sakana Fugu: A Multi-Agent Orchestration System as a Foundation Model

https://sakana.ai/fugu-beta/
1•hardmaru•34m ago•0 comments

Show HN: A Clean Room RFC for NTFS Structural Repair

https://github.com/seb3773/ntfs-repair-rfc/
1•seb3773•38m ago•1 comments

Are unbeaten superteams like the UConn Huskies bad for basketball?

https://www.theguardian.com/sport/2026/mar/18/basketball-superteams-uconn-huskies-march-madness
1•PaulHoule•38m ago•0 comments

US Special Forces Soldier Arrested for Polymarket Bets on Maduro Raid

https://www.wired.com/story/us-special-forces-soldier-allegedly-profited-off-of-maduro-capture-on...
3•sssilver•41m ago•2 comments

Show HN: FilePop – a file browser in your menu bar

https://bendansby.com/filepop/
1•webwielder2•44m ago•0 comments

TikTok Makes Americans Want Chinese EVs They Can't Have

https://www.bloomberg.com/news/articles/2026-04-21/byd-xiaomi-and-zeekr-car-reviews-flood-tiktok-...
5•KnuthIsGod•44m ago•0 comments

Why Async Rust? (2023)

https://without.boats/blog/why-async-rust/
1•cosmic_quanta•46m ago•0 comments

Linux Commands Cheat Sheet

https://linuxserverguides.com/linux-commands-cheat-sheet.html
2•steelsmiley•47m ago•0 comments

Show HN: I Built a Terms-of-Service Analysis Chrome Extension - Check it Out!

https://chromewebstore.google.com/detail/tostask/cdlcnhmhiicolbmjemllhlfmofahlnlm
1•Armaan2010•50m ago•1 comments

Ask HN: How many tabs do you have open in the browser(s) and why?

2•juujian•1h ago•3 comments

MCP Gateways Aren't Enough: AI Agents Need Identity, Authorization, and Proof

https://www.diagrid.io/blog/why-mcp-gateways-are-not-enough
1•mwfussell•1h ago•0 comments