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

Show HN: Learn about and play with HDR gain maps on the web

https://www.hdr.toys/
1•thebigsasha•3m ago•0 comments

You Know It

https://gist.github.com/firatsarlar/0a1400f67a9c88516ebdfb2a7782ca93
1•firatsarlar•6m ago•0 comments

Show HN: An English teaching game playable in browser (concept)

https://qcgeneral29.github.io/Lets-Learn-Build/
1•LandenLove•8m ago•0 comments

The Brown University shooter and the MIT professor he killed

https://www.bostonglobe.com/2026/02/17/metro/brown-shooter-mit-professor-portugal/
1•osnium123•8m ago•0 comments

Security audit of OpenClaw and other similar open source AI Agents

https://www.prismor.dev/blog/openclaw-ai-agents-security-audit
2•noobcoder•9m ago•1 comments

Meet The Przewalski's Horse: The Last True Wild Horse on Earth

https://animalko.com/meet-the-przewalskis-horse-the-last-true-wild-horse-on-earth/
1•thunderbong•9m ago•0 comments

Collection of Slide Rule Replicas

https://thingsabove.github.io/Sliderule-Simulator-with-Solver/
1•zdw•11m ago•0 comments

Claude was down and performance degraded 2x

https://isitnerfed.org
1•rumble_poster•11m ago•0 comments

Building an Elite AI Engineering Culture in 2026

https://www.cjroth.com/blog/2026-02-18-building-an-elite-engineering-culture
1•thoughtfulchris•14m ago•0 comments

HumanCompiler – Compile humans into AI agents – a Claude Code plugin

https://github.com/Gerstep/HumanCompiler
1•oger•15m ago•0 comments

AI Agents Are Taking America by Storm

https://www.theatlantic.com/technology/2026/02/post-chatbot-claude-code-ai-agents/686029/
1•aarvinroshin•17m ago•0 comments

European Tech Alternatives

https://eutechmap.com/map
6•puppion•20m ago•0 comments

AgentPuzzles – API‑first timed puzzle arena and public leaderboard for AI agents

https://agentpuzzles.com
1•petruspennanen•22m ago•1 comments

New Website, New Technology

https://www.grepular.com/New_Website_New_Technology
3•bundie•25m ago•0 comments

Why don't entrepreneurs talk about starting businesses publicly anymore?

1•silexia•34m ago•0 comments

I Built Local Memory for Coding Agents Because They Keep Forgetting Everything

https://muhammadraza.me/2026/building-local-memory-for-coding-agents/
3•mr_o47•44m ago•0 comments

Show HN: I built a pre-push safety net for AI-generated code

https://github.com/asamassekou10/ship-safe
1•asamassekou•45m ago•0 comments

FemtoClaw

https://crates.io/crates/femtoclaw_rs
1•lygten•46m ago•0 comments

Miserable Polestar 4 'Feature' a Symbol for What Is Wrong with Modern Cars

https://www.theautopian.com/this-miserable-feature-of-the-polestar-4-feels-like-a-symbol-for-what...
3•patrikcsak•48m ago•0 comments

Show HN: CodeSprout – HTML Vibecoder for Kids

https://qeditor.dev/
1•dpweb•49m ago•0 comments

Upstart Sarvam Unveils AI Model Customized for India Market

https://www.bloomberg.com/news/articles/2026-02-18/upstart-sarvam-unveils-ai-model-customized-for...
1•akbarnama•49m ago•0 comments

Is Python Still the King of AI in 2026?

https://codebitdaily.blogspot.com/2026/02/why-python-is-king-ai-2026.html
1•CodeBit26•51m ago•0 comments

Stateful sandbox environments (for AI agents)

https://sprites.dev/
1•Martin-Carlsson•58m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•emilzo•58m ago•1 comments

ReferenceFinder: Find coordinates on a piece of paper with only folds

https://mutsuntsai.github.io/reference-finder/
2•icwtyjj•1h ago•0 comments

Memory Mania: How a Once-in-Four-Decades Shortage Is Fueling a Memory Boom

https://newsletter.semianalysis.com/p/memory-mania-how-a-once-in-four-decades
1•littlexsparkee•1h ago•0 comments

Apple Releases iOS 26 Adoption Rates; They're in Line with the Last Few Years

https://daringfireball.net/2026/02/apple_releases_ios_26_adoption_rates
3•JumpCrisscross•1h ago•0 comments

Open-source React dashboard for OpenClaw – visual UI for every CLI command

https://github.com/actionagentai/openclaw-dashboard
1•marconahmias•1h ago•1 comments

Germany seeking more F-35 jets as European fighter program falters

https://www.reuters.com/business/aerospace-defense/germany-seeking-more-f-35-jets-european-fighte...
5•JumpCrisscross•1h ago•1 comments

A short-duration wearable pulse-ox patch prototype

1•babagajoush•1h ago•0 comments