frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•11mo 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•11mo 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•11mo 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).

Creative Enfeeblement

https://herbertlui.net/creative-enfeeblement/
1•herbertl•1m ago•0 comments

Show HN: LazyAgent – All in one observerbility TUI app for coding agents

https://github.com/chojs23/lazyagent
1•neozz•1m ago•0 comments

HN Blackout Poetry

https://mrdee.in/vibecoding/vibecoding-019-hn-blackout-poetry/
1•cyb0rg0•3m ago•0 comments

Oshkosh council rescinds Flock camera contract after 'false statements'

https://www.wbay.com/2026/04/23/oshkosh-council-rescinds-flock-camera-contract-after-false-statem...
1•healsdata•4m ago•0 comments

AngelList Announces USVC

https://usvc.com/
1•manishfp•6m ago•0 comments

Gone but Not Forgotten: Recovering the Dead Web

https://blog.archive.org/2026/04/23/gone-but-not-forgotten-recovering-the-dead-web/
3•TangerineDream•7m ago•0 comments

AI bias can creep into online content moderation

https://news.uq.edu.au/2026-04-how-ai-bias-can-creep-online-content-moderation
2•demartini•8m ago•0 comments

Stop being honest in job interviews

https://old.reddit.com/r/jobhunting/comments/1ssj0pf/stop_being_honest_in_job_interviews_i_say_th...
1•tomcam•10m ago•0 comments

List of predictions for autonomous Tesla vehicles by Elon Musk

https://en.wikipedia.org/wiki/List_of_predictions_for_autonomous_Tesla_vehicles_by_Elon_Musk
1•xqcgrek2•12m ago•0 comments

Capital Without Labour: A Founder's Guide to the Changing VC Equation

https://felixbarbalet.com/capital-without-labour-a-founders-guide-to-the-changing-vc-equation/
1•xlfe•13m ago•0 comments

Can you MoCap a parkour video?

https://galbanis.dev/blog/viewer.html?post=climb-mocap
1•Tycho87•14m ago•0 comments

Agents CLI in Agent Platform: Create to Production in One CLI Blog

https://developers.googleblog.com/agents-cli-in-agent-platform-create-to-production-in-one-cli/
3•Anon84•14m ago•0 comments

Milla Jovovich's AI memory claims to beat all paid ones. Benchmarks disagree

https://atlas-rag.com/vs-mempalace
1•apolloraines•19m ago•0 comments

Python security headers without copy-paste policy drift

https://github.com/TypeError/secure
2•cak•20m ago•0 comments

SideQuick – A free desktop app to stop abandoning side projects

https://www.sidequick.co
3•splodgebox•27m ago•0 comments

ShadowStrike-Labs: ShadowStrike Phantom Home UI

1•Soocile•29m ago•1 comments

Kubernetes release that kills Ingress Nginx, contains Japanese poetry and art

https://www.theregister.com/2026/04/23/kubernetes_1_36_haru/
1•romaniitedomum•30m ago•0 comments

Per-Project Terminal Colours

https://andrew-jones.com/blog/per-project-terminal-colours/
1•arjones•31m ago•0 comments

Open Source Claude Mythos Reconstruction

https://firethering.com/openmythos-open-source-claude-mythos-reconstruction/
1•worldvoyageur•31m ago•0 comments

Outplaying elite table tennis players with an autonomous robot

https://www.nature.com/articles/s41586-026-10338-5
1•bookofjoe•33m ago•0 comments

How to Check Active Loan on My Name Online – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/how-to-check-active-loan-on-my-name.aspx
1•saumyaraut11•35m ago•0 comments

Ask HN: Do you comment on a code/Markdown files, then get your agent to reread?

1•FailMore•35m ago•1 comments

The Subnautica 2 legal dispute is far from over

https://www.gamedeveloper.com/business/the-subnautica-2-early-access-dispute-is-far-from-over
1•HelloUsername•37m ago•0 comments

Particle thought to break physics followed rules all along, research reveals

https://phys.org/news/2026-04-particle-thought-physics-reveals.html
3•pseudolus•38m ago•0 comments

Why Gasoline Is So Much Cheaper in the U.S. Than Overseas

https://www.wsj.com/economy/why-gasoline-is-so-much-cheaper-in-the-u-s-than-overseas-f6bd2309
1•Willingham•39m ago•0 comments

Reconstructing Microsoft's SDE Career Ladder from Leaks, Filings and Salary Data

https://shiftmag.dev/microsofts-software-engineering-career-ladder-9318/
2•choochilla4•39m ago•0 comments

AI slop bug reports overflowing vendors. Vendors can't handle the slop

https://xcancel.com/vxunderground/status/2047169024748929390
4•doener•40m ago•0 comments

Congressman Introduces Bill to Ban AI Chatbots in Children's Toys

https://blakemoore.house.gov/media/press-releases/congressman-blake-moore-introduces-bill-to-ban-...
4•pseudolus•49m ago•0 comments

Ruth Slenczynska, last surviving pupil of Rachmaninoff, dies aged 101

https://www.bbc.com/news/articles/c62ly04pre3o
1•sohkamyung•50m ago•0 comments

Faru: The Kanban Board for AI Agents

https://fluado.comblog/faru-kanban-board-for-ai-agents
1•yvg0•50m ago•0 comments