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

Ask HN: Resources for learning visual design as a developer?

1•chaosharmonic•2m ago•0 comments

What does 2026 hold for Cowboy?

https://micromobility.io/news/what-does-2026-hold-for-cowboy
3•prabinjoel•4m ago•0 comments

Many Small Steps for Robots, One Giant Leap for Mankind

https://www.notboring.co/p/robot-steps
6•cominatchu•5m ago•0 comments

Show HN: Claude Code plugin for ecommerce development

https://github.com/medusajs/medusa-claude-plugins/tree/main/plugins/medusa-dev
1•sebrindom•5m ago•0 comments

Ask HN: What is your knowledge domain and how do you stay up-to-date?

1•ossner•5m ago•0 comments

Emoji Design Convergence Review: 2018 – 2026

https://blog.emojipedia.org/emoji-design-convergence-review-2018-2026/
2•tosh•6m ago•0 comments

High Contrast-ish Gruvbox theme for VS Code

https://marketplace.visualstudio.com/items?itemName=bullptr.highgruv
1•bukharim96•6m ago•0 comments

Is Tehching Hsieh the most extreme performance artist ever?

https://www.theguardian.com/artanddesign/2026/jan/14/tehching-hsieh-most-extreme-performance-arti...
1•bookofjoe•9m ago•0 comments

Ctrl+F All of Manhattan

https://searchable.city
1•seekthenfind•9m ago•0 comments

Show HN: Grow Developer – An idle web game about the journey to a startup 'Exit'

https://www.devgrow.co.kr/en
1•devjun_jun•9m ago•0 comments

Some

https://some.3b1b.co/
2•Tomte•11m ago•0 comments

Eatmydata – transparently disable fsync() and other data-to-disk sync calls

https://manpages.debian.org/testing/eatmydata/eatmydata.1.en.html
3•nateb2022•12m ago•0 comments

Launch HN: Indy (YC S21) – A support app designed for ADHD brains

https://www.shimmer.care/indy-redirect
7•christalwang•14m ago•1 comments

They've pickled each others' brains

https://sf.gazetteer.co/theyve-pickled-each-others-brains
3•mathgenius•21m ago•0 comments

Skills Manager for Your Coding Agent

https://github.com/kasperjunge/agent-resources
3•aakast•22m ago•1 comments

AI and the Corporate Capture of Knowledge

https://www.schneier.com/blog/archives/2026/01/ai-and-the-corporate-capture-of-knowledge.html
3•cyunker•22m ago•0 comments

The Reasons New Yorkers' Groceries Cost So Much

https://www.vitalcitynyc.org/articles/nyc-grocery-cost-explained
2•mhb•23m ago•1 comments

Show HN: DeepSeeds – An AI tool that generates structured SEO content briefs

https://deepseeds.net/
2•Waffle2180•23m ago•0 comments

Scripily Restoration

https://restoration.scripily.com
1•thisarajay•23m ago•0 comments

Improving Morning Efficiency Through Better Organisation with Dressing Table

https://dreamhomestore.co.uk/collections/dressing-tables
1•homedecorart01•24m ago•1 comments

6-Day and IP Address Certificates Are Generally Available

https://letsencrypt.org/2026/01/15/6day-and-ip-general-availability.html
2•todsacerdoti•24m ago•1 comments

Why There's No Single Best Way to Store Information

https://www.quantamagazine.org/why-theres-no-single-best-way-to-store-information-20260116/
1•jandrewrogers•24m ago•0 comments

The Cost of "Just One More Node"

https://hashrocket.substack.com/p/the-hidden-cost-of-just-one-more
1•thehashrocket•25m ago•1 comments

String Theory Can Now Describe a Universe That Has Dark Energy

https://www.quantamagazine.org/string-theory-can-now-describe-a-universe-that-has-dark-energy-202...
1•jandrewrogers•26m ago•0 comments

Elon Musk's X down for users

https://www.bbc.com/news/live/cp8456m8mnkt
4•ndsipa_pomu•26m ago•1 comments

Steveyegge/Gastown

https://github.com/steveyegge/gastown
1•geoffbp•26m ago•0 comments

Knut Hamsun

https://en.wikipedia.org/wiki/Knut_Hamsun
1•treetalker•26m ago•1 comments

Data centers are amazing. Everyone hates them

https://www.technologyreview.com/2026/01/14/1131253/data-centers-are-amazing-everyone-hates-them/
2•Brajeshwar•27m ago•0 comments

Windows App forgets how to log in with first security update of the year

https://www.theregister.com/2026/01/15/windows_app_credential_failures/
3•Brajeshwar•27m ago•0 comments

I Turn Scientific Renderings of Space into Art

https://nautil.us/i-turn-scientific-renderings-of-space-into-art-1261733/
2•Brajeshwar•27m ago•0 comments