frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Meta apologises to India for restricting PM Modi's post

https://www.reuters.com/world/india/meta-apologises-india-restricting-pm-modis-post-2026-08-05/
1•thisislife2•24s ago•0 comments

From constraint models to playable puzzle games

https://zayenz.se/blog/post/constraint-generated-puzzle-games/
1•mzl•1m ago•0 comments

Airworthiness Directive: Cracks in Fuselage of Boeing 737-8, 737-9, and 737-8200

https://www.federalregister.gov/documents/2026/08/06/2026-15936/airworthiness-directives-the-boei...
1•impish9208•1m ago•0 comments

New Intelligence Warns Russia May Provoke NATO Amid Dwindling U.S. Munitions

https://www.wsj.com/finance/investing/new-intelligence-warns-russia-may-provoke-nato-amid-dwindli...
1•doener•3m ago•0 comments

Our world is full of slop

https://refactoringorgs.com/ramblings/world-full-of-slop.php
1•polocode•3m ago•0 comments

textlog – A quiet, text-only microblogging platform

https://textlog.cc/about
1•stagas•3m ago•0 comments

Ask HN: Is there an AI app that generates a feed of personalized cheat sheets

1•ElegantTrader•5m ago•0 comments

Claude Code skill allowing orchestration of edits beat-synced to songs

https://github.com/ZiadAbdelkarim/beat-synced-edit
1•iwasastreamer•5m ago•0 comments

Ask HN: Alternatives to Hotline Telegram CRM?

1•hotline•6m ago•0 comments

Loop Engineering in Claude

https://claude.com/blog/getting-started-with-loops
1•abrbhat•10m ago•0 comments

An explosion of new AI-written genealogy tree tools

https://blog.dnapainter.com/blog/an-explosion-of-new-tree-tools/
1•vintermann•10m ago•0 comments

Build a crappy ring-0 toy antivirus in eBPF with the IMA LSM

https://blog.prizrak.me/post/ima/
1•razighter777•11m ago•0 comments

Kitesurf: Agent-first browser that runs in V8 isolates

https://blog.cloudflare.com/kitesurf/
2•m3h•13m ago•0 comments

Crubit: C++/Rust Bidirectional Interop Tool Rust Workflow

https://crubit.rs/
1•zombot•16m ago•0 comments

Bulldozers Plow Through Big Bend National Park, Sparking Fury in Texas

https://www.newsweek.com/bulldozers-plow-through-big-bend-national-park-sparking-fury-in-texas-12...
1•almog•22m ago•0 comments

US strikes $1.2B deal to pay German firm to halt offshore wind projects

https://www.bbc.com/news/articles/c1e1vg0gjl5o
9•defrost•26m ago•0 comments

Sonic Pi v5 Released

https://www.patreon.com/samaaron/posts/sonic-pi-v5-166001392
1•samaaron•29m ago•1 comments

Kalshi and Polymarket bets on clinical trials criticized as 'ghastly'

https://text.npr.org/nx-s1-5922530
2•1659447091•32m ago•0 comments

HeroBot

https://herobot.co/
1•ingersol•33m ago•0 comments

Notes Compound, Blogs Compile: When I Update a Note vs. Publish a Post

https://www.ssp.sh/brain/sharing-as-second-brain-note-vs-a-blog-post/
2•zazuke•33m ago•0 comments

Honey, I Shrunk the Agency (Our journey building a software factory)

https://vibegui.com/en/article/honey-i-shrunk-the-agency/
1•gadr90•36m ago•1 comments

AI danger explained for people who don't understand full sentences

https://www.reddit.com/r/OpenAI/s/ASRcUl35lX
2•nemo_captain•36m ago•1 comments

Coldcard Postmortem from MicroPython's Perspective

https://github.com/orgs/micropython/discussions/19588
1•mech4bg•40m ago•0 comments

Tears in Rain Monologue

https://en.wikipedia.org/wiki/Tears_in_rain_monologue
1•tosh•41m ago•0 comments

Ask HN: What observability stack are you using for AI agents in production?

2•varda_62892•42m ago•0 comments

Asking "Was EvoMap's Evolver a reference" for Hermes gets deleted and blocked

https://github.com/NousResearch/hermes-agent/issues/10232
2•sundarurfriend•43m ago•0 comments

DeepMind Says Its AI Can Predict Hurricanes Earlier Than Everyone Else

https://www.wired.com/story/deepmind-ai-model-can-predict-hurricanes-earlier/
2•WithinReason•47m ago•0 comments

The Illusion of Visual Tool-Use: A Causal Audit of Thinking with Images

https://arxiv.org/abs/2608.06270
1•sbulaev•48m ago•0 comments

A Rare 4.5-Hour Interview with Huawei's Chief Scientist for Semiconductors

https://chinatechbite.substack.com/p/a-rare-45-hour-interview-with-huaweis
2•hunglee2•49m ago•0 comments

Jujutsu 0.44.0

https://github.com/jj-vcs/jj/releases/tag/v0.44.0
1•birdculture•50m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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).