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

Fast ride, higher bill: Why shared e-mopeds may widen suburban transport costs

https://techxplore.com/news/2026-02-fast-higher-bill-mopeds-widen.html
1•PaulHoule•48s ago•0 comments

Altman on AI energy: it also takes 20 years of eating food to train a human

https://old.reddit.com/r/singularity/comments/1rb2pzf/sam_altman_people_talk_about_how_much_energ...
1•puttycat•2m ago•0 comments

40 Years of Zelda

https://www.polygon.com/zelda-40th-anniversary/
1•throw0101c•3m ago•0 comments

Large-scale online deanonymization with LLMs (including HN users)

https://arxiv.org/abs/2602.16800
1•salkahfi•3m ago•0 comments

Open-AutoGLM: Zhipu AI Open-Sources a Framework for Autonomous Phone Agents

https://theagenttimes.com/articles/open-autoglm-23k-stars-the-phone-agent-framework-from-chinas-a...
1•Ross00781•4m ago•0 comments

Cromemco C-10 Personal Computer – By John Paul Wohlscheid

https://computeradsfromthepast.substack.com/p/cromemco-c-10-personal-computer
1•rbanffy•4m ago•0 comments

Show HN: FounderSDR – AI cold email outreach for B2B SaaS founders ($299/mo)

https://founder-sdr.surge.sh
2•AISDR•5m ago•0 comments

We searched 852K Epstein docs for pizza, ice cream and every food code word

https://twitter.com/EpsteinSecrets/status/2025400741360234503
2•epsteinsecrets•5m ago•0 comments

A monthly dump of the 15,000 most-downloaded packages from PyPI

https://hugovk.github.io/top-pypi-packages/
2•gjvc•5m ago•0 comments

The right time: Leaving Automattic

https://nickdiego.com/the-right-time
2•taubek•6m ago•0 comments

Facing a mental health crisis, NJ school pulls beloved novel from English class

https://www.npr.org/2026/02/20/nx-s1-5708741/junot-diaz-oscar-wao-mental-health-book-bans
2•randycupertino•7m ago•0 comments

SEC Says Probe Involving AppLovin 'Still Active and Ongoing'

https://www.bloomberg.com/news/articles/2026-02-20/sec-says-probe-involving-applovin-is-still-act...
2•1vuio0pswjnm7•10m ago•0 comments

Never leave the home row to navigate tmux panes

https://raine.dev/blog/tmux-navigate-panes-home-row/
2•rane•12m ago•0 comments

Privacy first image converted / copressor

https://twitter.com/_juliushere/status/2025613479248310443
2•gintokinx•14m ago•0 comments

Ask HN: What breaks when you run AI agents unsupervised?

1•marvin_nora•14m ago•1 comments

Nvidia's Stock Is So Stuck Even Blowout Earnings May Not Lift It

https://www.bloomberg.com/news/articles/2026-02-22/nvidia-s-stock-is-so-stuck-even-blowout-earnin...
1•1vuio0pswjnm7•14m ago•1 comments

How AI Is Accelerating Life-Saving Discovery

https://gladstone.org/index.php/news/how-ai-accelerating-life-saving-discovery
1•giuliomagnifico•16m ago•0 comments

Show HN: Stopping Claude Code from wasting 50K tokens/turn in agent spawns

https://github.com/jungjaehoon-lifegamez/MAMA/pull/43
1•jungjaehoon•17m ago•0 comments

How to cut back on your social media addiction

https://nypost.com/2026/02/21/tech/heres-how-to-cut-back-on-your-social-media-addiction/
2•1vuio0pswjnm7•17m ago•0 comments

Should I add this acknowledgement/shoutout by xAI/Grok to my resume?

2•aehsan4004•20m ago•0 comments

Awesome Claws

https://github.com/machinae/awesome-claws
2•il•20m ago•1 comments

The Limits of AI

https://hughhowey.com/the-limits-of-ai/
1•hentrep•24m ago•0 comments

Show HN: I quit MyNetDiary after 3 years of popups and built a calorie tracker

https://calories.today/app.html
2•davemuz•24m ago•0 comments

Show HN: Droneski, an FPV drone ski camera simulator

https://github.com/imjasonh/droneski
2•ImJasonH•25m ago•1 comments

AI System – Is It Your "Cognitive Exoskeleton" or Simply Your Super-Fast Intern?

3•kokhanserhii•25m ago•0 comments

Claws don't need to be complicated

https://justin.abrah.ms/blog/2026-02-21-claws-don-t-need-to-be-complicated.html
1•abrahms•26m ago•0 comments

Amazon, Meta, Alphabet report plunging tax bills thanks to AI and tax changes

https://finance.yahoo.com/news/amazon-meta-and-alphabet-report-plunging-tax-bills-thanks-to-ai-in...
2•epistasis•27m ago•1 comments

Scientists discover new dinosaur species deep in the Sahara Desert

https://abcnews.com/International/scientists-discover-new-dinosaur-species-deep-sahara-desert/sto...
1•Brajeshwar•27m ago•0 comments

Internet Archive X Gray Area: Trillionth Webpage Net.Art Commissions

https://blog.archive.org/internet-archive-x-gray-area-trillionth-webpage-net-art-commissions/
1•Brajeshwar•27m ago•0 comments

Goodweb

https://l5.lraot.top/
1•TrendSpotterPro•30m ago•0 comments