frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•8mo 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•8mo 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•8mo 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).

What Starcraft Teaches Us About Vibe Coding

https://twitter.com/i/status/2018355437620380032
1•ajay-higgs•3m ago•0 comments

Why child prodigies rarely become elite performers

https://www.economist.com/science-and-technology/2026/01/14/why-child-prodigies-rarely-become-eli...
1•i7l•8m ago•0 comments

Epstein files rife with uncensored nudes and names, despite redaction efforts

https://apnews.com/article/jeffrey-epstein-files-28a28aeebcfd49890e0810eb69992724
2•petethomas•9m ago•0 comments

AI 'slop' is transforming social media – and a backlash is brewing

https://www.bbc.com/news/articles/c9wx2dz2v44o
1•pseudolus•9m ago•0 comments

Build Your Own Insect Drone

https://earthchronicles.substack.com/p/building-a-biomimetic-insect-vision
2•taguniversalsw•10m ago•0 comments

Show HN: Zetoe – Instant AI actions for any selected text

https://chromewebstore.google.com/detail/zetoe-ai-writing-grammar/mfcncdeeeekkjgonodmcjajafigpgnhh
1•prince_singh•14m ago•0 comments

The Future Was Federated

https://news.dyne.org/the-future-was-federated/
1•fiatjaf•15m ago•0 comments

The Wayback Machine's plug-in to fix the internet's broken links problem

https://techcrunch.com/2026/02/04/the-wayback-machine-debuts-a-new-plugin-designed-to-fix-the-int...
2•i7l•16m ago•0 comments

I let the internet control a GitHub repo for 4 weeks

https://old.reddit.com/r/webdev/comments/1qrz4xj/i_let_the_internet_control_a_github_repo_for_4/
1•tomcam•17m ago•0 comments

Bedrock, an A.I. Startup for Construction, Raises $270M

https://www.nytimes.com/2026/02/04/business/dealbook/bedrock-robotics-ai-fundraise.html
1•lxm•18m ago•0 comments

Show HN: A Data Interchange Format

https://github.com/HyaenaTechnologies/configuration/blob/main/documentation/data-interchange.md
1•JohnMatthias•20m ago•0 comments

Novo Nordisk Warns of First Sales Drop Since Start of Ozempic

https://www.nytimes.com/2026/02/04/business/novo-nordisk-wegovy-sales-earnings.html
1•lxm•21m ago•0 comments

Realtime Eval Guide

https://developers.openai.com/cookbook/examples/realtime_eval_guide
1•gmays•22m ago•0 comments

How VPN-free remote access works

1•brintha•27m ago•0 comments

Expansion Microscopy Has Transformed How We See the Cellular World

https://www.quantamagazine.org/expansion-microscopy-has-transformed-how-we-see-the-cellular-world...
1•pseudolus•32m ago•0 comments

Anthropic Is Close to Releasing Claude Sonnet 5, per Rumors

https://www.macobserver.com/news/anthropic-is-close-to-releasing-claude-sonnet-5-per-rumors/
1•itisit•34m ago•0 comments

How to Write Good (Short) Docs

https://tombedor.dev/how-to-write-good-short-docs/
1•jjfoooo4•51m ago•0 comments

Living Through the Cultural Revolution

https://substack.com/home/post/p-186384573
6•expectsomuch•53m ago•1 comments

Fact Check: Did JK Rowling invite Jeffrey Epstein to a play?

https://rainyseason.substack.com/p/fact-check-did-jk-rowling-invite
3•duck_house•54m ago•0 comments

Banks seek out new buyers for Oracle data centre loans

https://www.ft.com/content/90aa74a5-b39d-4131-a138-367726cb18fb
6•zerosizedweasle•55m ago•2 comments

243,000 words dictated in 39 days, speech-to-text changed how I work

https://modulovalue.com/blog/voxtral-transcribe-and-wispr-flow/
2•modulovalue•1h ago•0 comments

Thomistic Philosophical Anthropology: An Interpretive Grid for LLMs

https://michaelmangialardi.substack.com/p/a-thomistic-philosophical-anthropology-llm-pt1
1•mikemangialardi•1h ago•0 comments

Writing an LLM from scratch, part 32B – Interventions: gradient clipping

https://www.gilesthomas.com/2026/02/llm-from-scratch-32b-interventions-gradient-clipping
2•gpjt•1h ago•0 comments

Nearly 40% of Stanford undergraduates claim they're disabled. I'm one of them

https://www.thetimes.com/us/news-today/article/40-percent-stanford-undergraduates-claim-disabled-...
3•mudil•1h ago•1 comments

Same Image, Different Score?

https://halide.cx/blog/chroma-handling/
2•computerbuster•1h ago•0 comments

Show HN: Pygantry – Why ship a whole OS when you just need a Python environment?

https://github.com/erabytse/Pygantry
3•takouzlo•1h ago•0 comments

Trustless crypto escrow for agent to agent (or humans)

https://coinpayportal.com/
1•cranberryturkey•1h ago•0 comments

Recent trends in the work of the Django Security Team

https://www.djangoproject.com/weblog/2026/feb/04/recent-trends-security-team/
2•todsacerdoti•1h ago•0 comments

Relic – a missing secrets artifact for Node and Edge

https://www.npmjs.com/package/@nick-skriabin/relic
1•nicholasrq•1h ago•0 comments

Does AI have human-level intelligence? The evidence is clear

https://www.nature.com/articles/d41586-026-00285-6
3•mudil•1h ago•0 comments