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

I Used Claude Code to Build My Planning System (So I Could Stop Planning)

https://marialearns.substack.com/p/how-i-used-claude-code-to-build-my
1•jackpep•12s ago•0 comments

Ask HN: Audio analysis models, how to train to learn sound patters?

1•thedangler•55s ago•0 comments

Mystery sounds under review for signs of extraterrestrial life

https://www.popsci.com/science/mystery-seti-sounds-extraterrestrial-life/
1•Brajeshwar•1m ago•0 comments

Why almost no homes burned in LA have been rebuilt since last year's fires

https://grist.org/housing/la-homes-not-rebuilt-after-last-years-wildfires/
1•Brajeshwar•1m 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•Brajeshwar•1m ago•0 comments

AWS Serverless: Still the Boring Correct Choice

https://nexo.sh/posts/aws-serverless-boring-correct-choice/
1•nexo-v1•2m ago•0 comments

Trump Threatens to Invoke Insurrection Act in Response to Minnesota Protests

https://www.wsj.com/politics/policy/trump-minnesota-insurrection-act-98e11761
1•perihelions•3m ago•0 comments

Filetypes and Airports

https://airports.swtch.tel/
1•firloop•3m ago•0 comments

Can Wikipedia Survive?

https://www.ft.com/content/513761bb-3b6c-4b32-9931-a34f01047558
1•alephnerd•3m ago•1 comments

Snowtree: Review-Driven Safe AI Coding

https://www.bohutang.me/2026/01/10/snowtree-review-driven-safe-ai-coding/
1•xiaohanyu•3m ago•0 comments

Radxa AICore Ax-M1M.2 AI Acceleration Module

https://radxa.com/products/aicore/ax-m1/
1•yawniek•4m ago•0 comments

Vibe – Claude Skill to let Claude Code read screen automatically

https://github.com/Blurjp/vibe
1•blurjp•5m ago•1 comments

A tool to see what changed in your code (beyond the diff)

https://gitlab.com/hilly.bopper/nuky
1•nuky•5m ago•1 comments

Upcoming Changes to Spotify Premium Subscriptions

https://newsroom.spotify.com/2026-01-15/premium-pricing-update/
1•soheilpro•6m ago•0 comments

Can Others Explain My Work Without Me?

https://www.olafalders.com/2026/01/15/can-others-explain-my-work-without-me/
1•oalders•9m ago•0 comments

Investigating the methodological foundation of lesion network mapping

https://www.nature.com/articles/s41593-025-02196-7
1•carschno•9m ago•1 comments

Forcing TypeScript to Be Exhaustive

https://www.carlos-menezes.com/posts/exhaustive-checking-typescript
1•carlos-menezes•10m ago•0 comments

Show HN: Azurite – Triage Linear and GitHub notifications like a deck of cards

https://azurite-labs.vercel.app/
2•QaysHaji•10m ago•0 comments

Why there are no job posting when looked on portal

1•hwagh511•12m ago•0 comments

Self Sanitizing Door Handle

https://www.jamesdysonaward.org/en-US/2019/project/self-sanitizing-door-handle/
1•rendaw•12m ago•0 comments

The Curse of Genius

https://www.economist.com/1843/2019/04/29/the-curse-of-genius
2•andsoitis•13m ago•0 comments

Browser DevTools MCP – AI agents that can test and debug their own web code

https://medium.com/@serkan_ozal/empowering-ai-to-test-and-debug-its-own-code-introducing-browser-...
1•sozal•15m ago•1 comments

ICE agents do not have 'absolute immunity' from state prosecution

https://reason.com/2026/01/13/no-ice-agents-do-not-have-absolute-immunity-from-state-prosecution/
5•treetalker•15m ago•0 comments

Prediction Markets Turned Life into a Dystopian Gambling Experiment

https://www.theringer.com/2026/01/14/tech/prediction-markets-betting-explained-meaning-polymarket...
4•cainxinth•17m ago•1 comments

Nvidia Reportedly Ends GeForce RTX 5070 Ti Production, RTX 5060 Ti 16 GB Next

https://www.techpowerup.com/345224/nvidia-reportedly-ends-geforce-rtx-5070-ti-production-rtx-5060...
7•ndiddy•18m ago•2 comments

Show HN: I vibecoded a language server for web assembly

https://github.com/EmNudge/wat-lsp
1•emnudge•19m ago•0 comments

Chess Programming Wiki

https://www.chessprogramming.org/Main_Page
1•Antibabelic•21m ago•1 comments

'It's AI blackface': account hailed as Aboriginal Steve Irwin is AI character

https://www.theguardian.com/australia-news/2026/jan/15/aboriginal-steve-irwin-ai-character-create...
2•joejohnson•21m ago•0 comments

The Death of the Cool

https://chrismarino.substack.com/p/the-death-of-the-cool
2•jger15•21m ago•0 comments

How stagnant is CPU technology?

https://lemire.me/blog/2026/01/14/how-stagnant-is-cpu-technology/
1•ibobev•23m ago•0 comments