frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

Show HN: OpenACA – security scanner for AI agent stacks (MCPs,skills,plugins)

https://github.com/open-agent-security/openaca
1•vinodkone•45s ago•0 comments

Beyond speed: Racer demonstrator proves agility and stability in latest tests

https://www.airbus.com/en/newsroom/stories/2026-03-beyond-speed-racer-demonstrator-proves-agility...
1•amichail•2m ago•0 comments

Qwen-Robot Suite: A Foundation Model Suite for Physical World Intelligence

https://qwen.ai/blog?id=qwen-robotsuite
1•ilreb•2m ago•0 comments

A Love Story

https://pudding.cool/2026/06/love-story/
1•surprisetalk•2m ago•0 comments

Show HN: ArXiv Scholar – An Open-Source RAG System for AI Research Papers

https://github.com/Ethereal-Agents/arxiv-scholar
1•dubeyaayush07•3m ago•0 comments

How to Scale Your Model – A Systems View of LLMs on TPUs (2025)

https://jax-ml.github.io/scaling-book/
1•frenchmajesty•3m ago•0 comments

Satellites Overwhelm Space Telescopes with "Railroad" Tracks

https://www.universetoday.com/articles/satellites-have-brightened-the-skies-by-about-10-across-th...
1•pseudolus•3m ago•0 comments

Oxygen 6.7 is here: a breath of fresh air for KDE's classic theme

https://filipfila.wordpress.com/2026/06/16/oxygen-6-7-is-here-a-breath-of-fresh-air-for-kdes-clas...
1•birdculture•4m ago•0 comments

Token Capital Needs Receipts

https://twitter.com/TJWXF3/status/2066863679212331467
1•tomjwxf•5m ago•0 comments

Show HN: Quollix – self-host applications with low administration effort

https://quollix.org
1•christoph_baier•6m ago•0 comments

Omnigraph, source control for context graphs in Rust

https://www.omnigraph.dev/
1•knuckleheads•7m ago•1 comments

The Reversal Curse: Why LLMs Know Tom Cruise's Mother but Not Her Son

https://cristobalsantana.substack.com/p/the-reversal-curse-why-llms-know
1•csantana_ml•7m ago•0 comments

AWS WAF announces AI traffic monetization

https://aws.amazon.com/about-aws/whats-new/2026/06/aws-waf-ai-traffic-monetization/
1•levleontiev•7m ago•0 comments

Show HN: AutomatiQ – Write Automations/Scrapers for any site, just by browsing

https://shiny-sushi-116.notion.site/automatiq
1•stonesteel27•8m ago•0 comments

Summer reading list, based on the data

https://www.not-ship.com/summer-books-2026/
1•speckx•8m ago•0 comments

If Unsure, Ask. Never Guess. AI Agent Pre-Execution Checklist

https://discuss.huggingface.co/t/if-unsure-ask-never-guess-ai-agent-pre-execution-checklist/176632
1•offaxis•9m ago•0 comments

How should AI agents declare what a site is about to other AI engines?

https://github.com/seomd/cli
1•skulquake•9m ago•0 comments

Children reacted to the UK social media ban

https://www.bbc.co.uk/newsround/videos/c77y80y1mjdo
1•DropDead•11m ago•0 comments

RFC proposed standard: HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
2•yxhuvud•11m ago•0 comments

Fantasy VC – run a venture fund across a simulated decade in 60 minutes

https://fantasyvc.xyz/
1•jimmy_strings•11m ago•0 comments

Show HN: Codyssey – control system programming game (open beta)

https://codyssey.andersource.dev/sp_login.html
2•andersource•11m ago•0 comments

Show HN: I hated sales, so I built a self-driving sales agent

https://try.wayy.ai/i-built-a-self-driving-sales-agent-for-solopreneurs
2•TrueCare24•12m ago•0 comments

Is Fable 5 Back?

https://isfable5back.com
1•AussieWog93•12m ago•0 comments

Show HN: Voice Age Verification

https://agewarden.ai/
2•wentw0rth•12m ago•0 comments

Show HN: Portaltext, grand strategy-style recursive tooltips for the web

https://portaltext.com/
1•alaskahoffman•14m ago•0 comments

Show HN: Allelix – Annotate your DNA against 7 public databases offline

https://github.com/allelix/allelix
1•dial481•14m ago•0 comments

Hungary's MPs block return of Orbán, limiting rule of PM to eight years

https://www.bbc.com/news/articles/c621zplqrrno
1•tartoran•14m ago•0 comments

The Plumber's Revenge

https://audriusberzanskis.substack.com/p/the-plumbers-revenge
1•audriusber•15m ago•0 comments

Show HN: Auto-triage customer emails to Linear with Claude and pydantic-AI

https://github.com/Reactance0083/pydantic-ai-email-linear-auto-triage
1•reactance0083•15m ago•0 comments

Show HN: Morning Stack finds real job openings, tweaks resume and cover letter

https://morningstack.app/demo/
2•hillj23•16m ago•1 comments