frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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: Cursor extension to track LLM cache TTL

https://github.com/agastalver/cache-timer-extension
1•agastalver•3m ago•0 comments

Trump seeks $1.5T for just defence, alongside domestic spending cuts

https://www.bbc.com/news/articles/crr1q4kjvn2o
2•throw0101c•4m ago•0 comments

Gcannon – fastest HTTP load generator for Linux

https://github.com/MDA2AV/gcannon
1•MDA2AV•5m ago•0 comments

US economy beats expectations to add 178,000 jobs in March

https://www.ft.com/content/82c1795b-704a-4da3-82ec-2f9cd52de01e
1•alephnerd•5m ago•0 comments

AI's Next Frontier: Insights from Jeff Dean and Bill Dally In

https://www.youtube.com/watch?v=g8BuAtM3fp4
1•guiambros•5m ago•0 comments

Elon Musk Requires Banks Behind SpaceX IPO to Buy Grok Subscriptions

https://www.forbes.com/sites/tylerroush/2026/04/03/elon-musk-requires-banks-behind-spacex-ipo-to-...
1•CyberMacGyver•7m ago•0 comments

Improving storage efficiency in Magic Pocket, Dropbox's immutable blob store

https://dropbox.tech/infrastructure/improving-storage-efficiency-in-magic-pocket-our-immutable-bl...
4•laluser•7m ago•0 comments

Blog Refresh

https://kataqatsi.com/ideas/13
1•kataqatsi•8m ago•0 comments

Show HN: LunaLora: Multi-LoRA System to Combat Catastrophic Forgetting

https://github.com/SphericalCowww/ML_LunaLoRA
1•SphericalCowww•8m ago•1 comments

Fatal addiction: Authors accuse Apple of destroying Japan's tech industry

https://theworld.org/stories/2016/07/30/fatal-addiction-authors-accuse-apple-destroying-japans-te...
1•zahirbmirza•13m ago•1 comments

It's the Internet, Stupid (2025)

https://www.persuasion.community/p/its-the-internet-stupid
2•mitchbob•15m ago•1 comments

Nikon Z9 Aboard the Artemis II Moon Mission at the Last Minute

https://petapixel.com/2026/04/02/a-nikon-z9-made-it-aboard-the-artemis-ii-moon-mission-at-the-las...
1•DASD•16m ago•0 comments

The problems with Big Tech AI data collection

https://nextcloud.com/blog/the-problems-with-big-tech-ai-data-collection-privacy-concerns-and-how...
3•devonnull•18m ago•0 comments

The danger of military AI isn't killer robots; it's worse human judgement

https://www.defenseone.com/technology/2026/03/military-ai-troops-judgement/412390/
4•speckx•19m ago•2 comments

HN: MCP-authz – runtime authorization middleware for MCP tool calls

https://github.com/soumyasagiri/mcp-authz
2•soumyasagiri•20m ago•0 comments

Attackers Are Hunting High-Impact Node.js Maintainers with Social Engineering

https://socket.dev/blog/attackers-hunting-high-impact-nodejs-maintainers
2•pier25•22m ago•2 comments

Researchers Secure NSF Grant to Test Ancient Fern as Carbon Offset Soln (2025)

https://news.stonybrook.edu/university/sbu-researchers-secure-nsf-grant-to-test-ancient-fern-as-c...
1•littlexsparkee•23m ago•0 comments

Rainy-City.com

https://rainy-city.com
1•mnky9800n•24m ago•0 comments

Show HN: Grammarly for tweet reach – 36 rules from X's source

https://github.com/AytuncYildizli/reach-optimizer
4•aytuncyildizli•27m ago•1 comments

Show HN: We're building an AI hedge fund

https://rallies.ai/arena
5•rallies•27m ago•10 comments

A Visual Tour of Modern LLM Architectures

https://www.youtube.com/watch?v=CepbWmGie0E
2•mdp2021•28m ago•0 comments

Pushing Claude Code Further with Spec Driven Development

http://gordonburgett.net/posts/2026/03_spec-driven-development/
3•gburgett•29m ago•0 comments

Craigslist Made Me Rich. Giving the Money Away Is Easy.

https://www.nytimes.com/2026/03/30/opinion/giving-pledge-philanthropy.html
3•bookofjoe•29m ago•1 comments

The Cost of Fewer Tokens: Context Efficiency Makes Playwright CLI Slower

https://outpost.ranger.net/post/the-hidden-cost-of-fewer-tokens/
1•mroset•30m ago•0 comments

Show HN: Lustre – MCP server giving AI tools premium Flutter components

https://www.npmjs.com/package/lustre-mcp
1•deltaops•32m ago•0 comments

ChatGPT vs. Electrical Engineering Graduate-Level Course Final Exam

https://www.youtube.com/watch?v=QTm8G2rQYTY
1•guiambros•32m ago•0 comments

Toasty, an Async ORM for Rust

https://tokio.rs/blog/2026-04-03-toasty-released
1•carllerche•34m ago•0 comments

The false dawn of the post-literate society

https://unherd.com/2026/04/the-false-dawn-of-the-post-literate-society/
2•anarbadalov•34m ago•0 comments

Mental Health Clothing Brand

https://nosaddays.com/
2•samdreamin•38m ago•1 comments

The uphill climb of making diff lines performant

https://github.blog/engineering/architecture-optimization/the-uphill-climb-of-making-diff-lines-p...
3•angristan•40m ago•0 comments