frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Building a Search Engine for the ASX

https://damonphilipross.github.io/2026/01/28/building-a-search-engine-for-the-asx/
1•damindestress•38s ago•0 comments

Show HN: Golden Ratio Face Analysis

https://attractivenesstest.com/golden-ratio-test
1•beast200•1m ago•0 comments

Addressing Asymptomatic AI Harms for Dignified Human-AI Interaction

https://arxiv.org/abs/2601.21920
1•50kIters•2m ago•0 comments

Making Flix Compiler Errors Helpful and Delightful

https://blog.flix.dev/blog/making-flix-compiler-errors-helpful-and-delightful/
1•jorkadeen•4m ago•0 comments

Bootstrap Chain for NixOS: Building the System from a Hand-Auditable Binary Seed

https://chaos.social/@nzbr/115973847897716839
1•birdculture•5m ago•0 comments

Show HN: jceb/jiejie.nvim: Neovim front end for Jujutsu in the style of fugitive

https://github.com/jceb/jiejie.nvim
1•jceb81•6m ago•0 comments

New OpenAI tool renews fears that "AI slop" will overwhelm scientific research

https://arstechnica.com/ai/2026/01/new-openai-tool-renews-fears-that-ai-slop-will-overwhelm-scien...
1•latexr•7m ago•0 comments

Microsoft explores bringing top menu bar to Win 11 with new PowerToys feature

https://www.windowscentral.com/microsoft/windows-11/microsoft-explores-bringing-linux-like-top-me...
1•Tomte•15m ago•2 comments

ProToken: Token-Level Attribution for Federated Large Language Models

https://arxiv.org/abs/2601.19672
1•onurkanbkrc•16m ago•0 comments

Apache Kafka without the hassle, K8s native, Iceberg and SQL

https://github.com/KafScale/platform
1•2pk03•20m ago•0 comments

Amazon Found 'High Volume' of Child Sex Abuse Material in AI Training Data

https://www.bloomberg.com/news/features/2026-01-29/amazon-found-child-sex-abuse-in-ai-training-data
1•nonfamous•24m ago•0 comments

Apple acquires Israeli audio AI startup Q.ai

https://www.reuters.com/business/apple-acquires-audio-ai-startup-qai-2026-01-29/
1•porridgeraisin•27m ago•0 comments

Trump sues IRS and US treasury for $10B over leak of tax returns

https://www.theguardian.com/us-news/2026/jan/29/trump-sues-tax-return-leak
3•mellisacodes•28m ago•0 comments

Show HN: We analyzed AI tool launches – here's why GTM breaks

1•yasu_c•28m ago•0 comments

Taiwan's GDP in 2025 Grew at Fastest Pace Since 2010 (+8.63%)

https://www.wsj.com/economy/taiwans-economy-grew-at-fastest-pace-in-15-years-fcf4f0d2
1•giuliomagnifico•28m ago•0 comments

Show HN: TagCompanion – Point-and-Click Google Tag Manager Implementation

https://www.tagcompanion.com/
1•ybor•32m ago•1 comments

Beyond the click: How brands can influence visibility in AI-generated answers

https://thenextweb.com/news/beyond-the-click-influence-visibility
2•voiquh•32m ago•0 comments

Show HN: Clear to Spend – a simple YES/NO helper for spending decisions

https://clear-to-spend.vercel.app/
1•Nanoto•34m ago•1 comments

Show HN: A Protocol for Inducing Metacognition in LLMs and Falsifiable Model

https://zenodo.org/records/18346699
1•Keeper123•34m ago•0 comments

HN Highlights

https://news.ycombinator.com/highlights
1•sgt•37m ago•0 comments

Show HN: Our GitHub org profile in ASCII art

https://github.com/taskade
1•johnxie•38m ago•1 comments

A Market Saturated with Binance Scams: How Its Shaping Current Crypto Landscape

https://twitter.com/i/status/2017142739767263252
11•salkahfi•43m ago•0 comments

Grok Imagine API

https://x.ai/news/grok-imagine-api
2•vincent_s•43m ago•0 comments

devenv: Fast, Declarative, Reproducible, and Composable Developer Environments

https://devenv.sh/
6•tosh•45m ago•0 comments

Another user's pCloud setup is visible in my pcloud drive

https://old.reddit.com/r/pcloud/comments/1qqrcza/another_users_pcloud_setup_is_visible_in_my/
10•lukax•46m ago•1 comments

Show HN: Flywheel – The Zero-Flicker Terminal Compositor for Agentic CLIs

https://github.com/ccheshirecat/flywheel
1•ccheshirecat•47m ago•1 comments

Hours without lungs: artificial organ kept man alive until transplant

https://www.nature.com/articles/d41586-026-00239-y
7•qnleigh•48m ago•0 comments

Show HN: SoVideo – Free AI video generator using Sora 2

https://sovideo.ai
1•leegrayson•49m ago•0 comments

Show HN: Two AIs compete to build the best browser game from scratch

https://self-evolving.dev/
1•yugahashi•49m ago•0 comments

GOG: Linux "the next major frontier" for gaming as it works on a native client

https://www.xda-developers.com/gog-calls-linux-the-next-major-frontier-for-gaming-as-it-works-on-...
27•franczesko•52m ago•3 comments