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

AI contributed "zero" to U.S. economic growth, Goldman Sachs has calculated

https://www.washingtonpost.com/technology/2026/02/23/ai-economic-growth-gdp-mirage/
1•coliveira•2m ago•0 comments

Show HN: Glass box governance for multi-agent AI coding workflows

https://github.com/Vinix24/vnx-orchestration
1•vincentvandeth•3m ago•1 comments

Show HN: Plagiarismremover.ai – A Free AI Plagiarism Remover

https://plagiarismremover.ai/
2•PlagiarismRem•7m ago•0 comments

What I learned building a Multi-Agent System

https://davide.im/posts/multi-agent-system/
2•vector3•8m ago•0 comments

Show HN: Lensboy – Lightweight camera calibration with spline distortion models

https://github.com/Robertleoj/lensboy
1•robertleoj•11m ago•0 comments

Goodbye P < 0.05. P-value is simply one among many to gauge scientific evidence

https://www.sciencedirect.com/science/article/abs/pii/S1878788626000159
1•XzetaU8•11m ago•0 comments

Show HN: Nano Banana 2 Playground – text-to-image and image-to-image demo

https://nanobanana-2.xyz
1•iamouyang•13m ago•0 comments

Show HN: I built a headless bot to automate SaaS directory launches (and AI SEO)

https://signalscan.eu
1•Ben_Tycho•13m ago•0 comments

WatchGuardian: Enabling User-Defined Just-in-Time Intervention on Smartwatch

https://dl.acm.org/doi/10.1145/3788689
1•brandonb•20m ago•0 comments

California Becomes Latest State to Weigh Balcony Solar Legislation

https://www.bloomberg.com/news/newsletters/2026-01-30/california-becomes-latest-state-to-weigh-ba...
1•bilsbie•21m ago•0 comments

Show HN: Audio Toolkit for Agents

https://github.com/shiehn/sas-audio-processor
2•stevehiehn•21m ago•0 comments

Archiving my tweets in my own blog

https://solmaz.io/x/2027708131254387017/
1•hosolmaz•22m ago•0 comments

Show HN: Chromectl – CLI to give an AI agent its own Chrome session

https://github.com/BartlomiejLewandowski/chromectl
1•bartek_gdn•23m ago•0 comments

Cursor built this 5 min 3 round Wordle

https://apps.apple.com/us/app/fastdle/id6739634096
1•triviatroy•24m ago•1 comments

Show HN: SkillMesh (role-based tool routing for Claude/Codex)

https://github.com/varunreddy/SkillMesh
2•VarunReddy023•25m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•bookofjoe•25m ago•0 comments

Ask HN: What can humans do that intelligent machines will not be able to do?

1•cs702•26m ago•0 comments

Show HN: Delta – A disk space analyzer that tracks where your disk space went

https://github.com/chuunibian/delta
1•zerfallen•27m ago•0 comments

Think of BigConfig Package as 'Helm for Everything'

https://www.bigconfig.it/use-cases/package/
1•amiorin•29m ago•0 comments

The Epstein Files and the Epstein Class

http://colabopad.blogspot.com/2026/03/the-epstein-files-and-epstein-class.html
4•Edmond•31m ago•0 comments

Background Agents

https://background-agents.com/
2•thebuilderjr•31m ago•0 comments

Show HN: Videolyti – Free video downloader with built-in AI transcription

https://videolyti.com/en
1•coder_decoder•32m ago•0 comments

NIST to introduce restrictions on non-US citizens

https://physicstoday.aip.org/news/nist-to-introduce-restrictions-on-non-us-citizens
2•bikenaga•32m ago•0 comments

Ask HN: Vibecoding feels like playing golf, wdyt?

2•julienreszka•34m ago•0 comments

Is Nvidia's post-Rubin roadmap shifting toward inference-first architectures?

https://www.buysellram.com/blog/nvidia-next-gen-feynman-beyond-training-toward-inference-sovereig...
1•jamesbsr•34m ago•1 comments

My Favorite 39C3 Talks

https://asindu.xyz/my-favorite-39c3-talks/
2•max_•37m ago•0 comments

Bolt.gives Introduces Free, Agentic AI Coding Platform

https://github.com/embire2/bolt.gives
2•embire2•37m ago•0 comments

Bad Thing Insurance – Coverage for alien abduction, rogue black holes, and AGI

https://badthing.xyz/
2•rooster666•38m ago•1 comments

Fast-Servers: An Interesting Pattern?

https://geocar.sdf1.org/fast-servers.html
2•signa11•39m ago•0 comments

Reverse engineering "Hello World" in QuickBasic 3.0

https://marnetto.net/2026/03/01/brun-hello-world
2•alberto-m•40m ago•2 comments