frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

EaglePress – I may have vibe coded this as ready to blog

https://eaglepress.org/post/eaglepress-download
1•eagle10ne•52s ago•0 comments

Show HN: Cq exchange: Hosted knowledge commons for AI coding agents

https://blog.mozilla.ai/cq-exchange-agents-without-borders/
1•angpt•3m ago•0 comments

Can you crack the famous unsolved cipher, created by the Zodiac Killer?

http://www.oranchak.com/zodiac/webtoy/
1•Alifatisk•4m ago•0 comments

Show HN: A botless meeting recorder and summarizer that runs in the browser

https://wocal.app
3•dsingh1990•5m ago•0 comments

Robert X Cringely is back to blogging

https://www.cringely.com/
1•dan_hawkins•5m ago•0 comments

GSD forked to get-shit-done-redux

https://github.com/gsd-redux/get-shit-done-redux
1•darronz•6m ago•0 comments

Software Defaults Create Emotionally Flat Spaces

https://frostecho.neocities.org/posts/software-defaults-create-emotionally-flat-spaces/
1•speckx•6m ago•0 comments

Show HN: Swarmsim – Emergent flocking and predator/prey dynamics

https://github.com/ninjahawk/swarmsim
1•ninjahawk1•6m ago•0 comments

Artificial Intelligence and Grade Inflation

https://escholarship.org/uc/item/80x8d3qd
1•geox•7m ago•0 comments

Fixing LLM Writing with Distribution Fine Tuning

https://rosmine.ai/2026/05/18/fixing-llm-writing-with-distribution-fine-tuning/
1•jbotz•8m ago•0 comments

Show HN: Mercury v3 – Convert Python Notebooks to Web Apps

https://github.com/mljar/mercury
1•pplonski86•10m ago•0 comments

Agent Traces: every browser session as a prompt

https://steel.dev/blog/agent-traces
1•nkko•10m ago•0 comments

Bank boss sorry after describing workers as 'lower value human capital'

https://www.bbc.com/news/articles/c98rqld1j3yo
2•tartoran•11m ago•0 comments

MCP Specification 2026-07-28 Release Candidate

https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/
2•disintegrator•12m ago•0 comments

Show HN: Agent Capsule – versioned checkpoints for agents you run

1•rmqyeby•13m ago•0 comments

HN isn't swamped yet, just AI-obsessed

https://www.mahl.me/blog/hacker-news-isnt-swamped-yet/
2•gorgmah•14m ago•0 comments

Scott Aaronson – The Truth About Quantum Computing [video]

https://www.youtube.com/watch?v=cq4atriB-Rc
1•nill0•16m ago•0 comments

Show HN: Runner – desktop app for running Claude Code, Codex as a crew

https://github.com/yicheng47/runner
2•yicheng47•18m ago•0 comments

Macro Wall Display

https://kensingtonhomes.uk
1•postmanag•19m ago•0 comments

I built Search Engine $100 business ideas filtered by budget,niche and AI Tools

https://onehundredbiz.com
1•DaveOne•19m ago•0 comments

Running Gitea Runner with Rootless Podman

https://www.nite07.com/en/posts/quadlet-gitea-runner-podman/
1•speckx•20m ago•0 comments

An AI system to help scientists write expert-level empirical software

https://arxiv.org/abs/2509.06503
1•cyco130•21m ago•0 comments

Plan to declare Dominion Voting Systems machines national security risks fails

https://twitter.com/ErinBanco/status/2057799461435220399
1•cf100clunk•22m ago•1 comments

Introducing the Godot Asset Store

https://godotengine.org/article/introducing-the-godot-asset-store/
2•makepanic•23m ago•0 comments

The Marquis, the Island, the Diary, and the Deal: The Casati Stampa Murders

https://www.utterlyinteresting.com/post/the-marquis-the-island-the-diary-and-the-deal-the-casati-...
1•amarcheschi•24m ago•0 comments

How to Call an API from an Email

https://redo.com/eng-blog/how-to-call-an-api-from-an-email/
1•tyurok•26m ago•1 comments

App Store stopped $2.2B in potentially fraudulent transactions in 2025

https://www.apple.com/newsroom/2026/05/the-app-store-stopped-over-2-point-2-billion-usd-in-fraudu...
2•CharlesW•27m ago•0 comments

A Marketplace of Fine Tuned SLMs for Agentic Tasks

https://marketplace.neurometric.ai/
2•robmay•27m ago•1 comments

Just Use Opus

https://ai.nevolin.be/just-use-opus
1•ilja-nevo•28m ago•0 comments

Bytecode VMs in surprising places (2024)

https://dubroy.com/blog/bytecode-vms-in-surprising-places/
1•azhenley•30m ago•0 comments