frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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: PrismCat – Local transparent proxy and debugging console for LLM APIs

https://github.com/paopaoandlingyia/PrismCat
1•etgpao•1m ago•0 comments

Goldman Sachs CEO Says Fears of Mass Unemployment from AI Are 'Overblown'

https://www.forbes.com/sites/antoniopequenoiv/2026/05/22/goldman-sachs-ceo-says-fears-of-mass-une...
1•_____k•1m ago•0 comments

Digital dragnet: When images online destroy lives

https://www.heise.de/en/news/Digital-dragnet-When-images-online-destroy-lives-11305613.html
1•robtherobber•1m ago•0 comments

AWS Fired the One Employee Who Gave a Damn

https://www.seuros.com/blog/aws-fired-the-human-who-made-the-difference/
2•berlianta•3m ago•0 comments

Spain blocks prediction markets Polymarket, Kalshi over lack of gambling licence

https://www.reuters.com/business/spain-blocks-prediction-markets-polymarket-kalshi-over-lack-gamb...
2•thm•4m ago•0 comments

A privacy focused video captioning tool

https://vidstudio.app/auto-caption
2•dxdyhog•4m ago•0 comments

A working definition of slop, and what to do when you hit the slop wall

https://dwyer.co.za/static/slop-is-code-you-cant-work-with.html
1•mooreds•6m ago•0 comments

LLM Layer for a Rails Application

https://dmitrytsepelev.dev/llm-layer-in-rails
1•dmitrytsepelev•6m ago•0 comments

Appeals Are Not Failures

https://sphericalcowconsulting.com/2026/05/26/when-consensus-fails/
1•mooreds•7m ago•0 comments

New Species of Tiny Blue Octopus Discovered in the Galápagos

https://time.com/article/2026/05/24/new-species-blue-octopus/
1•mooreds•7m ago•0 comments

Visualize your Obsidian notes and ideas on a radar

https://community.obsidian.md/plugins/radar
1•lfcipriani•8m ago•0 comments

Not Every Byte Gets a Vote

https://mitander.xyz/posts/not-every-byte-gets-a-vote/
1•mitander•10m ago•0 comments

From WKWebView to CEF: Embedding Chromium in a Tauri App

https://getatrium.dev/blog/embedding-real-browser-tauri
1•jonnyasmar•10m ago•0 comments

Microcosm Industries

https://microcosm.industries/
1•surprisetalk•12m ago•0 comments

Show HN: Run RL agents in the browser with WebGPU

https://agenlus.com/
1•umjunsik132•12m ago•1 comments

Show HN: Lavern: an open-source multi-agent legal system (Apache 2.0)

https://github.com/AnttiHero/lavern
2•anttihero•13m ago•2 comments

Ubiquiti patches three max severity UniFi OS vulnerabilities

https://www.bleepingcomputer.com/news/security/ubiquiti-patches-three-max-severity-unifi-os-vulne...
2•kmfrk•13m ago•1 comments

'I had to guard an empty room': the rise of the pointless job (2020)

https://davidgraeber.org/articles/i-had-to-guard-an-empty-room/
1•thunderbong•14m ago•0 comments

You Live in an Illusion. Get over It

https://www.amazingcto.com/ai-the-next-absorption-event/
1•KingOfCoders•14m ago•0 comments

Show HN: Burnrate $1M a month, backwards through time

https://indiepixel.de/burnrate/
2•gizmo64k•14m ago•0 comments

Veryl Simulator: Performance Comparison with Verilator

https://veryl-lang.org/blog/veryl-simulator-performance/
1•dalance•15m ago•0 comments

Show HN: Decoding the Language Machine – AI video series and CC repo

https://github.com/SkepticCTO/decoding_the_language_machine
1•rbuccigrossi•16m ago•0 comments

Top Python Libraries for Large-Scale Data Processing

https://www.kdnuggets.com/top-7-python-libraries-for-large-scale-data-processing
1•SVI•18m ago•0 comments

Block open-sourced Goose, an AI agent that scaled to 60% of the company

https://vantageacademy.io/post/block-goose-recipe-runner
2•haimari1•20m ago•0 comments

Judging AGI Output (2020)

https://www.lesswrong.com/posts/cn6JRYD4z6nEkQvqR/judging-agi-output
1•merelydev•21m ago•0 comments

KlongPy: PyTorch Back End and Autograd

http://www.klongpy.org/torch_backend/
1•tosh•21m ago•0 comments

ING's 'Vibe Coding' AI Is Building Its New Trading Systems

https://www.bloomberg.com/news/articles/2026-05-26/ing-s-vibe-coding-ai-is-building-its-new-tradi...
1•mancerayder•23m ago•0 comments

Show HN: The X Programming Language

https://github.com/xqb64/X
2•xqb64•23m ago•0 comments

Beyond Recall: Behavioral Specification as Interpretive Layer for AI

https://www.base-layer.ai/research/beyond-recall
1•agulaya24•24m ago•0 comments

Evaluating Claude's bioinformatics research capabilities with BioMysteryBench

https://www.anthropic.com/research/Evaluating-Claude-For-Bioinformatics-With-BioMysteryBench
1•johnnyfived•25m ago•0 comments