frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•8mo 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•8mo 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•8mo 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: Kaval – WhatsApp agent that checks if content is real or fake

https://www.kaval.chat/
1•Anuranjan_Vikas•2m ago•0 comments

XHTML Club

https://xhtml.club/
2•bradley_taunt•3m ago•0 comments

Digital liberation: EU Parliament calls for detachment from US tech giants

https://www.heise.de/en/news/Digital-liberation-EU-Parliament-calls-for-detachment-from-US-tech-g...
2•doener•4m ago•0 comments

Against Markdown

https://aartaka.me/markdown.html
1•naves•6m ago•0 comments

Curl Gets Rid of Its Bug Bounty Program over AI Slop Overrun

https://itsfoss.com/news/curl-closes-bug-bounty-program/
1•birdculture•6m ago•0 comments

You Don't Own Your Intelligence. That's About to Cost You Everything

https://twitter.com/RileyRalmuto/status/2014888666670244089
1•bilsbie•8m ago•0 comments

Ask HN: ICE Raided My Friend's Home by Mistake, Traumatized His Family

3•MITfather•9m ago•0 comments

Logs from my self improving, dreaming AI substrate (OS), w persistent memory

https://pastebin.com/WJQsKua7
1•promptfluid•9m ago•2 comments

NHS cancer gene database to identify patients at risk

https://www.bbc.co.uk/news/articles/c62v7l4v7gro
1•ode•11m ago•0 comments

I created an AI text humanizer with database of AI words

https://kitful.ai/write-tools/ai-text-humanizer
1•eashish93•12m ago•0 comments

The AI-Powered Web Is Eating Itself

https://www.noemamag.com/the-ai-powered-web-is-eating-itself/
1•giuliomagnifico•14m ago•0 comments

We Have No Idea How to Code. So We Got Claude to Code This Article for Us.

https://www.wsj.com/tech/ai/anthropic-claude-vibe-coding-experiment-a4a3bb0f
1•bookofjoe•14m ago•1 comments

Browser-based GLB model explorer for batch 3D asset review

https://glb.arysociety.com/
1•fantasim•15m ago•1 comments

Claude Code VJ

https://twitter.com/mishushakov/status/2015044821635789050
1•ushakov•15m ago•0 comments

MS confirms it will give the FBI your Windows PC data encryption key if asked

https://www.windowscentral.com/microsoft/windows-11/microsoft-bitlocker-encryption-keys-give-fbi-...
2•blacktulip•16m ago•0 comments

The Cognitive Cost of Glass: Why I switched back to paper for active recall.

https://turbulencegains.com/ipad-vs-paper-study-guide/
1•jerr12939•16m ago•0 comments

Episode II: Revenge of the Fish

https://nobreakthroughs.substack.com/p/episode-ii-revenge-of-the-fish
1•jruohonen•22m ago•0 comments

FlutterJS – Run Flutter code, get semantic HTML output

1•flutterjs•26m ago•0 comments

You can't pay me to prompt

https://dbushell.com/2025/06/18/ai-policy/
2•shinryuu•27m ago•0 comments

A Step Behind the Bleeding Edge: A Philosophy on AI in Dev

https://somehowmanage.com/2026/01/22/a-step-behind-the-bleeding-edge-monarchs-philosophy-on-ai-in...
1•Ozzie_osman•27m ago•0 comments

The Duelling Rhetoric at the AI Frontier

https://deadneurons.substack.com/p/the-duelling-rhetoric-at-the-ai-frontier
2•nr378•28m ago•0 comments

SSH has no Host header: virtual hosting based on user public keys

https://blog.exe.dev/ssh-host-header
2•fanf2•29m ago•0 comments

Pushing Simulation to the Limit to Find Order in Chaos [video]

https://www.youtube.com/watch?v=8jVogdTJESw
1•hubertpel•30m ago•0 comments

Calm Traffic Needs More Than Calm Driving [video]

https://www.youtube.com/watch?v=m74zazYPwkY
2•hubertpel•31m ago•0 comments

Send One Net Dollar

https://sendonedollar.net/
1•vampeta•38m ago•1 comments

BSS Blue Hive Build

https://www.bluehiveguide.com/blue-hive-composition-guide.html
1•andy846851797•38m ago•0 comments

Why refreshing the analytics page destroys your productivity

https://medium.com/@loganholdsworth/why-refreshing-the-analytics-page-destroys-your-productivity-...
2•worstmarketer•39m ago•0 comments

Show HN: RWS – Local-first task orchestrator using Qwen 2.5 on consumer hardware

https://github.com/resilientworkflowsentinel/resilient-workflow-sentinel
1•resworksentinel•40m ago•1 comments

Nano Image

https://www.nano-iamge.io
1•gosailing•44m ago•0 comments

Ejabberd 26.01 / ProcessOne – Erlang Jabber/XMPP/Matrix Server – Communication

https://www.process-one.net/blog/ejabberd-26-01/
1•neustradamus•47m ago•0 comments