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

Show HN: TabAny – Start AI chats from text boxes, enables quick translations

https://www.tabany.app/
1•sally-suite•8s ago•0 comments

rsync.net Is Down

https://www.rsync.net/
1•gurjeet•1m ago•0 comments

Study: Meta AI model can reproduce almost half of Harry Potter book

https://arstechnica.com/features/2025/06/study-metas-llama-3-1-can-recall-42-percent-of-the-first...
1•throwoutway•3m ago•0 comments

Built a desktop assistant [fully local] for myself without any privacy issue

1•surajkumar5050•3m ago•2 comments

Built a desktop assistant [fully local] for myself without any privacy issue

https://github.com/Surajkumar5050/zyron-assistant
1•surajkumar5050•7m ago•1 comments

Treasury SEC Admits Americans Are on the Hook for Trump's $10B Lawsuit

https://newrepublic.com/post/206211/treasury-secretary-bessent-trump-irs-lawsuit-taxpayers
2•SilverElfin•8m ago•1 comments

Waiting for Postgres 19: Better Planner Hints with Path Generation Strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
1•sbuttgereit•11m ago•0 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
3•svespalec•14m ago•0 comments

What's at the Other End of 8.8.8.8?

https://blog.nono.io/post/8.8.8.8/
2•marinesebastian•16m ago•0 comments

Solving Shrinkwrap: New Experimental Technique

https://kizu.dev/shrinkwrap-solution/
1•spiros•17m ago•0 comments

The Question she did not ask

https://claudepress.substack.com/p/the-question-she-didnt-ask
2•Paodim•28m ago•1 comments

Show HN: CursedFeed, a social feed where people use spells to mutate next posts

https://cursedfeed.vercel.app/
1•Roccan•28m ago•0 comments

The Five Eras of KVCache

https://www.modular.com/blog/the-five-eras-of-kvcache
1•timmyd•30m ago•0 comments

The $921M Special Interest Machine That Controls California

https://garryslist.org/posts/the-921m-special-interest-machine-that-controls-california
3•rahimnathwani•33m ago•0 comments

Independent analysis of AI: AI landscape to choose the best model and provider

https://artificialanalysis.ai
1•teleforce•34m ago•0 comments

How to Survive a Fall Through the Ice

https://www.nytimes.com/2026/02/05/us/fall-through-ice-frozen-water-rescue.html
2•0in•34m ago•1 comments

Show HN: OpenWeavr – Run AI workflows on your own machines to automate tasks

https://github.com/openweavr/Openweavr
1•EmTekker•35m ago•0 comments

Show HN: Graph Maker, a tool to help you create data graphs in seconds with AI

https://www.graph-maker.ai
2•lealee•35m ago•1 comments

Bardo Thodol

https://en.wikipedia.org/wiki/Bardo_Thodol
3•toomuchtodo•35m ago•0 comments

UX Anti-patterns skill: Catch the UX sins Claude ships when you're not looking

https://github.com/cassiozen/UX-antipatterns
1•cacozen•37m ago•0 comments

GitHub Actions Is Slowly Killing Your Engineering Team

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
1•codesuki•38m ago•1 comments

Major political upheaval in Japan? Sanae Takaichi may dissolve the Diet

1•jocelyner•39m ago•0 comments

Reddit Lead Generation: The Complete Guide for B2B Companies

https://getvibeddit.com/blog/reddit-lead-generation-guide
1•shenli3514•41m ago•0 comments

GPT-5.3-Codex System Card [pdf]

https://cdn.openai.com/pdf/23eca107-a9b1-4d2c-b156-7deb4fbc697c/GPT-5-3-Codex-System-Card-02.pdf
1•vinhnx•41m ago•0 comments

Claude Opus 4.6 System Card [pdf]

https://www-cdn.anthropic.com/0dd865075ad3132672ee0ab40b05a53f14cf5288.pdf
1•vinhnx•41m ago•0 comments

Onnx2fx: Yet another ONNX to PyTorch FX converter

https://github.com/mshr-h/onnx2fx
1•mshr-h•42m ago•0 comments

What is the best free AI tool for legal advice?

http://www.harrisblog.com/
1•Jane21•43m ago•1 comments

Monty - A minimal, secure Python interpreter written in Rust

https://github.com/pydantic/monty
1•scolvin•44m ago•0 comments

Can I get a six pack?:-)

https://www.youtube.com/watch?v=kQRu7DdTTVA
1•jeffkumar•46m ago•1 comments

'We don't want to end up like the US', ex-Australian Prime Minister Turnbull

https://www.smh.com.au/national/nsw/sydney-summit-live-updates-industry-leaders-politicians-gathe...
4•KnuthIsGod•47m ago•1 comments