frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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: LaminarDB – Streaming SQL database in Rust, zero-alloc hot path

https://github.com/laminardb/laminardb
1•sujitn•54s ago•0 comments

Historically first (0.01) release of Linux kernel (1991)

https://github.com/zavg/linux-0.01
1•tosh•1m ago•0 comments

Anthropic's pricing wall is routing enterprise revenue to OpenAI

1•luckygreen•4m ago•0 comments

Show HN: TokenMeter – Open-source observability layer for LLM token costs

https://github.com/ATMAECHO/TOKEN-METER
1•Mohit8880•5m ago•1 comments

Show HN: OpenClaw – Open-source personal AI agent that lives on your machine

https://github.com/openclaw/openclaw
1•YaraDori•11m ago•0 comments

TinyIce: Single-binary Icecast2-compatible server (auto-HTTPS, multi-tenant)

https://github.com/DatanoiseTV/tinyice
1•sylwester•12m ago•1 comments

John Carmack on GPU Scheduling

https://twitter.com/ID_AA_Carmack/status/2023805426345689198
1•tosh•12m ago•0 comments

Show HN: Claude Code as a Doctor for Claude Code

https://github.com/Ramsbaby/openclaw-self-healing
1•ramsbaby-dev•16m ago•0 comments

"Operation Windlord": C-17 Airlifts a Micro Nuclear Reactor for the First Time

https://www.twz.com/uncategorized/this-is-a-nuclear-reactor-packed-into-a-c-17-globemaster-iii
2•hitekker•18m ago•0 comments

Oral history of Robert P. Colwell [pdf]

https://www.sigmicro.org/media/oralhistories/colwell.pdf
1•luu•19m ago•0 comments

The Brain May Learn More from Rare Events Than from Repetition

https://www.ucsf.edu/news/2026/02/431511/brain-may-learn-more-rare-events-repetition
2•XzetaU8•20m ago•0 comments

Can personality change after 60? An eight-week program suggests it can

https://www.uni-heidelberg.de/en/newsroom/psychology-study-you-can-teach-an-old-dog-new-tricks
1•XzetaU8•27m ago•0 comments

Babel – Captchas for AI

https://babel.vercel.app/
1•aizk•33m ago•2 comments

Q4 2025: Where 8,500 institutional investors put $1.3T in new capital

https://13finsight.com/research/q4-2025-institutional-consensus-where-smart-money-converges
4•vicchenai•34m ago•0 comments

Humanoid Robots Perform Kung Fu at China's 2026 Spring Festival Gala

https://app.cctv.com/special/m/topic/index.html?itemId=2676
2•edweis•38m ago•0 comments

MCP works because tools are dumb. That assumption has an expiry date

https://productfit.substack.com/p/mcp-is-a-transitional-protocol-heres
1•niraj_kothawade•40m ago•1 comments

The AI War Is Over. Google Won

https://www.youtube.com/watch?v=hcE0NPYlo1w
1•cable2600•41m ago•1 comments

Welcome to the Software Industrial Revolution

https://cannoneyed.com/essays/software-industrial-revolution
2•bentaber•43m ago•1 comments

In Search of a Discord Replacement

https://no-bull.sh/blog/2026/02/16/in-search-of-a-discord-replacement/
3•ta8903•44m ago•2 comments

Rescuers Race to Find 10 Missing Skiers After Avalanche Near Lake Tahoe

https://www.nytimes.com/2026/02/17/weather/california-rain-snow-forecast.html
1•carabiner•47m ago•1 comments

Show HN: Heaven is real and it runs on a microkernel

https://aryal.schizoid.men/heaven_is_real_and_it_runs_on_a_microkernel.html
1•aryalaadi•48m ago•1 comments

Show HN: GhostTrace – See rejected decisions in AI agents

https://github.com/AhmedAllam0/ghosttrace
1•AhmedAllam0•48m ago•2 comments

POSIX-UEF POSIX compatibility layer and build environment for UEFI

https://gitlab.com/bztsrc/posix-uefi
2•shakna•49m ago•1 comments

Migrating from Postgres to ClickHouse for faster dashboards

https://docs.fiveonefour.com/guides/performant-dashboards/tutorial?lang=typescript
1•oatsandsugar•50m ago•1 comments

What happens when you type a url in the browser's address box and press enter?

https://github.com/alex/what-happens-when
1•buchanae•55m ago•1 comments

A New Complexity Theory for the Quantum Age

https://www.quantamagazine.org/a-new-complexity-theory-for-the-quantum-age-20260217/
1•rolph•58m ago•0 comments

Mysterious NSFW "Grok" Notification from Google App

https://taylor.town/google-grok-notif
4•surprisetalk•58m ago•3 comments

SettleRisk – Resolution risk scoring API for prediction markets

https://settlerisk.com
1•replicantarmy•1h ago•2 comments

Try this surprisingly hard to deceive accent detector

https://start.boldvoice.com/accent-oracle
1•no_creativity_•1h ago•2 comments

Show HN: m6502, a 6502 CPU for FPGAs and Tiny Tapeout

https://github.com/chrismoos/m6502
2•chrismoos•1h ago•2 comments