frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Anthropic bans OAuth tokens (including Agent SDK) in 3P tools

https://code.claude.com/docs/en/legal-and-compliance
1•mcast•51s ago•1 comments

How do you guys manage reusable info from AI conversation history

1•microseyuyu•56s ago•0 comments

Build a Low-Cost DIY USB Volume Knob with Digispark ATtiny85

http://albert-david.blogspot.com/2026/02/build-low-cost-diy-usb-volume-knob-with.html
1•albert007_d•1m ago•0 comments

Zxingorg

https://www.zxingorg.com/
1•sartaj22•2m ago•0 comments

Re

1•sartaj22•3m ago•0 comments

Show HN: I replaced Grafana+Prometheus with a Go binary and SSH for my VPSs

https://github.com/thobiasn/tori-cli
1•thobiasn•4m ago•0 comments

Finding Comfort in the Uncertainty

https://annievella.com/posts/finding-comfort-in-the-uncertainty/
1•rawgabbit•5m ago•0 comments

Dexie.js: Offline-First DB with Cloud Sync, Collaboration and Real-Time Updates

https://dexie.org
1•thunderbong•5m ago•0 comments

Can justice happen on a laptop? Study says yes

https://phys.org/news/2026-01-justice-laptop.html
1•PaulHoule•5m ago•0 comments

Show HN: See how algorithms manipulate your social/media feeds in real-time

https://github.com/agentkites/attentionguard-extension
1•aadivar•6m ago•0 comments

Show HN: GridCalc, an RPN Spreadsheet for iOS

1•wooby•6m ago•0 comments

A researcher wouldn't release his app. I recreated it in less than a week

https://tannermarino.com/2026/researcher-wouldnt-release-app-recreated-week/
1•samename•6m ago•0 comments

In Argentina, locals are taking loans to buy food

https://www.aljazeera.com/economy/2026/2/16/in-argentina-locals-are-taking-loans-to-buy-food
1•koolhead17•6m ago•0 comments

TaskPilot – AI agent framework that blocks dangerous commands before execution

https://github.com/NexTryApp/TaskPilot
1•Nextry•7m ago•1 comments

Show HN: Exitlight – Find privacy contacts for data deletion requests

https://github.com/riccardoruspoli/exitlight
1•riccardoruspoli•8m ago•0 comments

Leetcompass.io - visual pattern-based catalog for LeetCode problems

https://leetcompass.io/
1•dr-o-ne•8m ago•1 comments

Despite being AWS-hosted, German Train Operator bahn.de gets hits by DDoS attack

https://www.theregister.com/2026/02/18/deutsche_bahn_ddos/
2•thomas_witt•9m ago•0 comments

Unprecedented 'Jobless Boom' Tests Limits of US Economic Expansion

https://www.bloomberg.com/news/features/2026-02-18/us-economy-expansion-forecast-even-with-weak-j...
2•toomuchtodo•10m ago•1 comments

Laurie Spiegel on the difference between algorithmic music and 'AI'

https://www.theverge.com/report/879819/laurie-spiegel-is-celebrating-40-of-music-mouse-with-a-mod...
1•aanet•10m ago•0 comments

Isometric Minecraft in Three.js

https://isocraft.vercel.app/
2•gdss•11m ago•1 comments

OpenAI's 5-month experiment: building a product with no human-written code

https://openai.com/index/harness-engineering/
2•mustaphah•11m ago•0 comments

Show HN: Irondiff-Visual Config Diff for Cisco/Juniper/PfSense with Slack Alerts

https://irondiff.com/
1•MattRos•11m ago•1 comments

AI Isn't Stalling – The Platforms Are Missing

https://productics.substack.com/p/the-paradox-of-ai-growth-why-platforms
1•iggori•13m ago•2 comments

Where Does Gold Come From? A 5B-Year Story

https://connordempsey.substack.com/p/where-does-gold-actually-come-from
1•cdempsey44•14m ago•0 comments

America Is Eating Less – and McDonald's Is Rewriting the Menu

https://ariatatrezvalthazar.blogspot.com/2026/02/america-is-eating-less-and-mcdonalds-is.html
2•Traumen•14m ago•1 comments

Hitem3D: AI Image-to-Model Tested

https://all3dp.com/4/new-ai-image-to-model-generator-promises-perfect-stl-files-we-put-it-to-the-...
1•davoneus•14m ago•1 comments

Mistral AI to Buy Infrastructure Startup Koyeb

https://www.wsj.com/tech/ai/mistral-ai-to-buy-software-infrastructure-startup-koyeb-e2de76ee
2•riadsila•15m ago•0 comments

How to Draw an Orange [video]

https://www.youtube.com/watch?v=zH2dFXDMwe4
1•napolux•15m ago•0 comments

"Nicotine Is Not Addictive"

https://senate.ucsf.edu/tobacco-ceo-statement-to-congress
1•GlibMonkeyDeath•16m ago•3 comments

How AI reflects the hidden truths of your software pipeline

https://thenewstack.io/ai-velocity-debt-accelerator/
1•rsyring•16m ago•0 comments