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

Netflix's AI deal puts the global VFX workforce at risk

https://restofworld.org/2026/netflix-interpositive-vfx-ai-automation/
1•jackyli02•1m ago•0 comments

FPGA-based tiled matrix multiplication accelerator for self-attention

https://arxiv.org/abs/2503.16731
2•sha_rad•2m ago•0 comments

Show HN: Aide – A customizable Android assistant (voice, choose your provider)

https://aideassistant.com/
1•yincrash•5m ago•0 comments

Omacon keynote talk with DHH [video]

https://www.youtube.com/watch?v=sMxskir7Rug
1•nodesocket•8m ago•0 comments

Ask HN: Why aren't companies with unlimited AI tokens not crushing it?

1•taariqlewis•11m ago•0 comments

Found in Peat

https://old.reddit.com/r/fossilid/comments/1sruf2q/found_in_peat/
1•gehwartzen•12m ago•0 comments

Show HN: Open Chronicle – Local Screen Memory for Claude Code and Codex CLI

https://github.com/Screenata/open-chronicle
1•taoh•12m ago•1 comments

Show HN: GBrain, an AI tool for diagnosis and therapy for neurodivergents

https://www.neuroplusgbrain.net/
1•FDX2018•14m ago•0 comments

Wired: They Built a Legendary Privacy Tool. Now They're Sworn Enemies

https://www.wired.com/story/they-built-privacy-tool-grapheneos-now-sworn-enemies/
1•joemazerino•15m ago•0 comments

Show HN: Agent harness that turns errors into shared genes

https://github.com/Prismer-AI/PrismerCloud
1•PrismerAI•16m ago•0 comments

The AI engineering stack we built internally – on the platform we ship

https://blog.cloudflare.com/internal-ai-engineering-stack/
1•geoffbp•22m ago•0 comments

Humpback whales are forming super-groups

https://www.bbc.com/future/article/20260416-the-humpback-super-groups-swarming-the-seas
1•andsoitis•23m ago•0 comments

Silicon Theogeny

https://garden.theory-a.com/philosophy/silicon-theogony
1•notShabu•25m ago•0 comments

Is Claude Code going to cost $100/month? Probably not—it’s all very confusing

https://simonwillison.net/2026/Apr/22/claude-code-confusion/
1•jbegley•25m ago•1 comments

FBI looks into dead or missing scientists tied to NASA, Blue Origin, SpaceX

https://fortune.com/2026/04/21/scientists-disappear-die-nasa-space-blue-origin-spacex/
16•ineedasername•29m ago•1 comments

Angine de Poitrine – Interesting microtonal rock band [video]

https://www.youtube.com/watch?v=0Ssi-9wS1so
3•Uptrenda•36m ago•0 comments

Southern Poverty Law Center indicted for fraud, money laundering

https://www.politico.com/news/2026/04/21/southern-poverty-law-center-justice-department-investiga...
17•f38zf5vdt•39m ago•6 comments

Chernobyl and Fukushima show how radioactive materials move in the environment

https://theconversation.com/research-at-chernobyl-and-fukushima-shows-how-radioactive-materials-m...
2•defrost•40m ago•0 comments

Supreme Court wary of limiting federal regulators' power in a data privacy case

https://apnews.com/article/supreme-court-att-verizon-location-data-ce402d08a70c7fa9797c35a73e2935bb
1•1vuio0pswjnm7•44m ago•0 comments

Tests Are Dead, Meticulous Is Here

https://www.meticulous.ai
2•rmason•44m ago•0 comments

4o-aircraft-carrier whistleblower alive

1•America_One•48m ago•1 comments

Meta to track workers' clicks and keystrokes to train AI

https://www.bbc.co.uk/news/articles/cvglyklz49jo
1•mmarian•49m ago•1 comments

How Gen-Z AI Founders Are Merging Work and Life

https://www.inc.com/ben-sherry/gen-z-ai-founders-are-merging-work-and-life-in-these-3-ways/91239573
1•thoughtpeddler•51m ago•0 comments

Show HN: MemFactory: Unified Inference and Training Framework for Agent Memory

https://arxiv.org/abs/2603.29493
2•MemTensor•52m ago•0 comments

Ask HN: How to get motivation of side projects if you don't need the money?

1•101008•53m ago•1 comments

Composing a Search Engine

https://exa.ai/blog/composing-a-search-engine
1•gmays•53m ago•0 comments

Ascend – DevSecOps framework with AI-powered merge conflict sync

https://github.com/venkatapgummadi/ascend
1•venkatapgummadi•56m ago•1 comments

OpenAI reinvents Recall except everything is stored remotely

https://developers.openai.com/codex/memories/chronicle
11•pluc•57m ago•4 comments

Show HN: Individual App Power Usage Tracking on Mac in Native Swift

https://macbookbatterymonitor.com
1•ryan-a•59m ago•0 comments

The Commodification of Travel

https://herman.bearblog.dev/the-commodification-of-travel/
3•HermanMartinus•1h ago•0 comments