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

Jensen Huang's departure blasts big hole in AI startup funding

https://techcrunch.com/2026/11/13/jensen-huangs-departure-blasts-big-hole-in-ai-startup-funding-v...
1•nlpnerd•2m ago•0 comments

Show HN: A browser RTS where you play alongside your local agents

https://agentcommand.gg/
1•fraywing•3m ago•0 comments

Ask HN: How do you decide when to stick with a project

2•mjs06•3m ago•1 comments

Benchmarking Qwen3-Coder-Next, DeepSeek-R1, and Qwen3.5 with Dynamic RSI

https://github.com/bibble/dynamic-rsi-harness/blob/main/BENCHMARK_REPORT.md
1•jxie2004•5m ago•0 comments

Two-Party System

https://en.wikipedia.org/wiki/Two-party_system
1•chistev•5m ago•1 comments

Show HN: Business Cubes

https://businesscubes.org
1•mojoe•6m ago•1 comments

Public Interest Capacity: The Case of Direct File [pdf]

https://onlinelibrary.wiley.com/doi/10.1111/puar.70224
1•thunderbong•7m ago•0 comments

A short history of the honey trap

https://engelsbergideas.com/notebook/a-short-history-of-the-honey-trap/
1•ibn_khaldun•8m ago•0 comments

Ops Needs Friction

https://www.jeffgeerling.com/blog/2026/ops-needs-friction/
2•notfried•9m ago•0 comments

Show HN: Linux CLI for Cricut StickerPix

https://github.com/vavkamil/crycut
1•vavkamil•12m ago•0 comments

The Mystery Behind a 50-Year-Old Factory Part Flying Off the Shelves

https://www.wsj.com/business/the-mystery-behind-a-50-year-old-factory-part-flying-off-the-shelves...
2•bookofjoe•14m ago•3 comments

Docs for Humans

https://lynx.railcode.dev/docs/humans
3•yakkomajuri•20m ago•0 comments

Preventing an AI catastrophe, a brief into to analysis by synthesis

https://shukla.io/blog/2026-11/analysis-by-synthesis.html
2•BinRoo•23m ago•0 comments

ask HN: Do you think everyone is going too far with Jensen Huang?

1•KinetiNode•23m ago•1 comments

Llama.cpp v1.0 on an RTX 3090: up to 55% faster with speculative decoding

https://homebrewserver.club/llama-cpp-v1.html
2•aidotguru•24m ago•0 comments

Training and Inference on Huawei Ascend NPUs

https://github.com/deepseek-ai/DeepEP-Ascend
1•Bluestein•24m ago•0 comments

Creating a self booting ZIP archive

https://goliath32.com/blog/ziphead.html
2•gdgghhhhh•25m ago•0 comments

Cowork – Self-hosted task queue and dashboard for Claude, Codex, and AI agents

https://github.com/slashman413/cowork
1•ckw19810413•27m ago•0 comments

EU institutions survive Microsoft outage unscathed

https://www.politico.eu/article/eu-institutions-survive-microsoft-outage-unscathed/
4•higginsniggins•28m ago•1 comments

Thinking Machines: End‑to‑End 4‑Bit Training

https://thinkingmachines.ai/blog/end-to-end-4-bit-training/
1•whiteros_e•31m ago•1 comments

The Missing Ring-0 Protections for AI Agents

https://hwtn.io/essays/t0013-missing-ring-0-protections-ai
2•danielberanek•31m ago•0 comments

Project Theseus, Starting with Challoc

https://www.chainguard.dev/unchained/introducing-project-theseus-starting-with-challoc
1•chillax•34m ago•0 comments

ZizkaDB × Redu Cloud: Bringing Operational Intelligence and Agent-Native Infra

https://medium.com/@MirArshadTalpur/zizkadb-redu-cloud-bringing-operational-intelligence-and-agen...
1•Arshad-Talpur•35m ago•1 comments

Show HN: What HN community recommended learning in 2026

https://school-of-hn.pages.dev
1•matyyyy•38m ago•0 comments

Ask HN: Open-source projects with notably good online documentation

1•petecooper•38m ago•0 comments

CRISPR-A rescues haploinsufficiency and mutant phenotypes in models of autism

https://www.nature.com/articles/s41593-026-02504-9
1•bryanrasmussen•40m ago•1 comments

Generative UI: C++ is still the King

https://ingresslabs.net/blog/prefab-or-cathedral
1•antagma•40m ago•0 comments

Before I Trust an Agent, I Try to Break Its Box

https://kunalkushwaha.github.io/2026/11/06/before-i-trust-an-agent/
1•kunalkushwaha•40m ago•0 comments

The Cloud Is Just Someone Else's Computer – They Let It Burn

https://soargram.io/content/369523282
7•levicanskij•44m ago•2 comments

Show HN: Mapboard – Excalidraw, but on a Map

https://mapboard.bruceroettgers.eu/
1•bcye•44m ago•0 comments