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

Ask HN: Who's hiring but companies that don't have AI mandates?

1•ares623•3m ago•0 comments

Post-AI World: Notes on Economy, Meaning, Agency

https://yashmouje.com/blog/post-ai-world
1•yashmouje•5m ago•0 comments

Mechanical Habits

https://matklad.github.io/2025/12/06/mechanical-habits.html
1•r4um•6m ago•0 comments

A Crisis in the Alps: Airbnb, Climate Change and Americans

https://www.nytimes.com/2026/03/02/travel/french-alps-problems-overdevelopment-climate-change.html
2•RestlessMind•9m ago•0 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
1•r4um•10m ago•0 comments

Denoising my Life: Part 1

https://adityashrishpuranik.com/writing/denoising-my-life
1•adityapuranik99•10m ago•0 comments

MIDI Viz Piano

https://zz85.github.io/midiviz/midiviz_piano.html
1•memalign•10m ago•0 comments

Windows 12 Reportedly Set for Release This Year

https://tech4gamers.com/windows-12-reportedly-relasing-2026-modular-ai-focused-os/
1•ryandrake•15m ago•0 comments

Merge PDF

https://www.pdffixnow.com/merge-pdf
1•instahotstar•20m ago•1 comments

I got tired of rewriting interview questions for every candidate,so I built this

https://recruitlens.io/
1•elminson•23m ago•1 comments

I built a collection of privacy-focused browser tools (no uploads)

https://everytool.solutions/
1•Mihir1426•23m ago•0 comments

MachineAuth: Open source Authentication infrastructure for AI agents

https://github.com/mandarwagh9/MachineAuth
1•mandarwagh•24m ago•1 comments

Rust zero-cost abstractions vs. SIMD

https://turbopuffer.com/blog/zero-cost
1•whiteros_e•24m ago•0 comments

I Have No Mouth

https://www.leemeichin.com/posts/i-have-no-mouth
1•freediver•28m ago•0 comments

The GPT-3.5 Era: A Retrospective on 404s, Biometric Clocks, and $400 Bills

https://chippytime.com/gpt3-story
1•chippytech•30m ago•0 comments

Show HN: Claude-brain – Sync your Claude Code brain across machines via Git

https://github.com/toroleapinc/claude-brain
1•edvatar•32m ago•0 comments

GitNexus: The Zero-Server Code Intelligence Engine

https://github.com/abhigyanpatwari/GitNexus
1•mpweiher•34m ago•0 comments

Show HN: Kira – AI agent for Android that runs in Termux and has a socialnetwork

https://github.com/levilyf/droidclaw
1•animiso•35m ago•0 comments

The Modular Phone of the Future [video]

https://www.youtube.com/watch?v=tQn8X6l3-ig
1•mgh2•38m ago•0 comments

A CPU that runs entirely on GPU

https://github.com/robertcprice/nCPU
2•cypres•40m ago•0 comments

Ask HN: Transforming My Resumé for the Age of AI

1•metadat•44m ago•0 comments

Indefinite Book Club Hiatus

https://whatever.scalzi.com/2026/03/03/indefinite-book-club-hiatus/
2•cdrnsf•45m ago•0 comments

Pixel homescreens get custom icons, but Google's keeping them locked to AI

https://9to5google.com/2026/03/03/pixel-homescreens-are-getting-custom-icons-but-googles-keeping-...
1•josephcsible•45m ago•0 comments

CuTe Layout Representation and Algebra

https://arxiv.org/abs/2603.02298
3•matt_d•51m ago•0 comments

Show HN: Shipcheck – run a final website audit before deploying

https://www.shipcheck.pro/
1•fiynraj•52m ago•0 comments

WSJ Opinion: The A.I. Data Center Backlash

https://www.wsj.com/video/series/journal-editorial-report/wsj-opinion-the-ai-data-center-backlash...
2•1vuio0pswjnm7•56m ago•0 comments

AI knows everything – what should learning look like for my kids(8-12Y)

https://searchsaga.vercel.app/
1•aadivar•56m ago•0 comments

Been building the world labs of the enterprise space

https://www.loom.com/share/ecf98b88c6c746f082a2c121c6015398
1•tjarzu•58m ago•1 comments

It's official: Hiring managers aren't reading your Résumé

https://www.businessinsider.com/hiring-managers-arent-reading-resumes-slop-2026-3
5•KnuthIsGod•1h ago•1 comments

I Just Returned from China. We Are Not Winning

https://www.nytimes.com/2026/02/10/opinion/china-ai-ev-trump.html
6•nothrowaways•1h ago•2 comments