frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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).

How Deep Is Tulainyo Lake?

https://caseyhandmer.wordpress.com/2026/09/20/how-deep-is-tulainyo-lake/
1•dannyobrien•46s ago•0 comments

The Windows message loop: how applications became reactive

https://www.diagrid.io/blog/agentic-execution-evolution-2-windows-message-loop
1•mwfussell•1m ago•0 comments

Hardware-Agnostic Models in vLLM

https://pytorch.org/blog/hardware-agnostic-models-in-vllm/
1•matt_d•2m ago•0 comments

Slop grenade – demo of Window Management API

https://slop-grenade.yeah.io/
1•ownerr•2m ago•0 comments

Apple Removes iPhone 16 and iPhone 17 from Texture and Grain Support

https://www.macobserver.com/news/apple-locks-iphone-16-17-out-texture-grain-controls/
1•ValentineC•3m ago•0 comments

Show HN: HookDeploy – Webhook infra with mTLS private delivery

https://hookdeploy.dev
1•mbernstein01•3m ago•0 comments

Using Local Coding Agents

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•pretext•3m ago•0 comments

Tired of Tracking Apps?

https://play.google.com/store/apps/details?id=com.versanyx.explainmy_phone&hl=en_US
1•Globe_18•3m ago•0 comments

Show HN: Droid ASC – An On-Demand Android Decompiler, 41–269x Faster Than JADX

https://github.com/MG1937/ASC
2•mgaldys4•4m ago•0 comments

Ask HN: Will software still matter when AI write all our programs?

1•estranhosidade•4m ago•1 comments

Extending Scapy for Hardware Reverse Engineering

https://voidstarsec.com/blog/scapy-spi-reconstruction
1•wrongbaud•6m ago•0 comments

Show HN: Local Software Factory – running multiple coding agents in parallel

https://github.com/stratonext/software-factory
1•gianlucabertell•7m ago•0 comments

Show HN: Make It Nice

https://liseman.github.io/make-it-nice/#/result/ATAC1fBVUPvgLIZ-Je3tNSsbNREfGzUbGysVdjhmd3JrZzJ5d...
1•liseman•8m ago•0 comments

LLM Benchmark for de-identification and synthesis

https://huggingface.co/datasets/TonicAI/Privacy-Bench
1•akamor•12m ago•0 comments

Law firm paid £200M to support Post Office, while police investigating scandal

https://www.computerweekly.com/news/366650861/Law-firm-paid-200m-to-support-Post-Office-while-pol...
1•latein•12m ago•0 comments

Named and Optional Arguments Are Awesome

https://botahamec.dev/named-optional-args
1•birdculture•13m ago•0 comments

AI Overviews and the Limits of the Search Safe Harbor

https://www.lawfaremedia.org/article/ai-overviews-and-the-limits-of-the-search-safe-harbor
1•hn_acker•13m ago•0 comments

Training a Language Model End-to-End in Rust: An Experience Report

https://arxiv.org/abs/2609.25008
2•Brajeshwar•13m ago•0 comments

Show HN: Watch Newsletters by AI

https://newsletrix.com/
2•ebod•13m ago•0 comments

Meta testing a 'human concierge' for its new personal AI agent, Muse

https://www.reuters.com/business/meta-testing-human-concierge-its-new-personal-ai-agent-muse-2026...
2•2143•15m ago•0 comments

SLOPocalypse Survivors

https://joshtronic.com/games/slopocalypse-survivors/
1•joshtronic•15m ago•0 comments

Show HN: Cloud-based email and calendar sync platform and Android app – for sale

https://sugarmail.app/
1•uncle_kostya•15m ago•0 comments

OAuth Token Theft Through Microsoft's Front Door

https://www.huntress.com/blog/stealing-oauth-tokens-through-microsofts-front-door
1•speckx•16m ago•0 comments

Apple Reference Image Explained Through Anti-Doping

https://medium.com/the-quantastic-journal/apple-reference-image-explained-through-anti-doping-642...
1•cadeos•16m ago•0 comments

Maynooth university: MU researchers build world-first DNA computer

https://www.maynoothuniversity.ie/news-events/mu-researchers-build-world-first-dna-computer-publi...
2•gvieri•16m ago•0 comments

ComfyUI launches OpenRouter for generative media

https://comfy.org/platform/router/
3•crystal_alpine•16m ago•2 comments

Show HN: PicoLM v1.0-rc2 ("Yura Kana"). Run an LLM on Digital Unix

https://github.com/whoreson/picolm/
1•gabucino•17m ago•0 comments

A Startup Wants to Power Data Centers with 'Supercritical' Carbon Dioxide

https://www.wired.com/story/startup-power-data-centers-supercritical-co2/
1•Brajeshwar•18m ago•0 comments

We open-sourced an event ticketing platform

https://evnelo.com/
1•mauriciogior•20m ago•1 comments

Functionally Zen

https://testdouble.com/insights/functionally-zen
2•BerislavLopac•22m ago•0 comments