frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

No Idle GPUs: Managing Research Compute at Runway

https://runwayml.com/news/no-idle-gpus-managing-research-compute-at-runway
1•itunpredictable•47s ago•0 comments

Panama's ocean lifeline vanishes for the first time in 40 year

https://www.sciencedaily.com/releases/2026/04/260426012253.htm
1•pseudolus•1m ago•0 comments

Tight Curves and Wide Horizons: The Return of Highway 1

https://www.nytimes.com/2026/04/28/travel/california-highway-1.html
1•mitchbob•2m ago•1 comments

Show HN: VoiceGoat – A vulnerable voice agent for practicing LLM attacks

https://github.com/redcaller/voice-goat
1•xmhatx•2m ago•0 comments

The West Talks About "Distillation." Fine. Let's Talk About Project Azorian

https://valeman.medium.com/the-west-talks-about-distillation-fine-lets-talk-about-project-azorian...
1•ibobev•3m ago•0 comments

What's New in Fedora KDE Plasma Desktop 44

https://fedoramagazine.org/whats-new-in-fedora-kde-plasma-desktop-44/
1•jrepinc•3m ago•0 comments

Apparent Surge in Self-Represented Litigation Using AI

https://reason.com/volokh/2026/04/28/apparent-surge-in-self-represented-litigation-using-ai/
1•delichon•4m ago•0 comments

Monitor Linux syscalls in real time for threat detection with bpftrace

https://github.com/ringzeropirate/ringzeropirate.github.io/tree/main/scripts/Ebpf/Primo%20Hook
2•ringzeropirate•6m ago•0 comments

Why more content is no longer a reliable way to grow SEO

https://searchengineland.com/more-content-unreliable-seo-475688
1•speckx•6m ago•0 comments

Is OpenAI Falling Further Behind in the A.I. Race?

https://www.nytimes.com/2026/04/28/business/dealbook/openai-misses-targets.html
1•xnx•7m ago•1 comments

Show HN: Figma alternative where AI works with vector primitives, not code

https://brilliant.design/
3•amantinband•8m ago•1 comments

Is Email Confidential in Transit Yet?

https://alexsci.com/blog/is-email-confidential-in-transit-yet/
1•fanf2•8m ago•0 comments

Does Point Cloud Boost Spatial Reasoning of Large Language Models?

https://arxiv.org/abs/2504.04540
1•gregsadetsky•9m ago•0 comments

Chip Startup Aims to Shatter AI's Dreaded Memory Wall

https://www.wsj.com/tech/chip-startup-aims-to-shatter-ais-dreaded-memory-wall-b5f4c563
1•Brajeshwar•11m ago•0 comments

Mild dehydration affects mood in healthy young women

https://pubmed.ncbi.nlm.nih.gov/22190027/
3•7777777phil•12m ago•1 comments

Scaling Test-Time Compute for Agentic Coding

https://arxiv.org/abs/2604.16529
1•gmays•14m ago•0 comments

Show HN: Rocky – Rust SQL engine with branches, replay, column lineage

https://github.com/rocky-data/rocky
1•hugocorreia90•14m ago•0 comments

Workday's Last Workday

https://www.a16z.news/p/workdays-last-workday
1•7777777phil•17m ago•0 comments

Big AI cluster little power the 8x Nvidia GB10 cluster

https://www.servethehome.com/big-cluster-little-power-the-8x-nvidia-gb10-cluster-marvell-cisco-ub...
1•teleforce•19m ago•0 comments

The Monetization of Spam

https://www.thomasmcgee.co/article/linkedin-inbox-spam
1•SunshineTheCat•19m ago•0 comments

The Making of Digital Identity: Mobile Revolution and the Surveillance Machine

https://syntheticauth.ai/posts/the-making-of-digital-identity-06-the-mobile-revolution-and-the-su...
1•zerolayers•22m ago•0 comments

The Pragmatic Prompter

https://liameveryday.substack.com/p/the-pragmatic-prompter
1•wlindner•22m ago•0 comments

Show HN: Keychase – A zero-config, offline Python secret scanner

https://github.com/Iflal/keychase
1•Iflal•23m ago•0 comments

GPT-5.5 prompt for Codex tries to make it not talk about goblins

https://twitter.com/arb8020/status/2048958391637401718
2•ndiddy•23m ago•0 comments

I Ditched the iCloud Keychain

https://webcatz.eu/blog/vaultwarden
1•speckx•23m ago•0 comments

Scammers use Gmail dot alias trick to spoof Robinhood in phishing scam

https://www.msn.com/en-us/news/technology/scammers-use-gmail-dot-alias-trick-to-spoof-robinhood-i...
1•kapkapkap•24m ago•0 comments

OpenAI's revenue, growth estimates fall short as company races toward IPO

https://www.cnbc.com/2026/04/28/openais-revenue-growth-estimates-fall-short-report.html
4•1vuio0pswjnm7•25m ago•0 comments

Show HN: Integrations gateway for agents with 2FA for destructive ops (OSS)

https://github.com/yakkomajuri/agentport
2•yakkomajuri•25m ago•0 comments

U.S. is 'being humiliated by Iran,' says Germany's Merz

https://www.cnbc.com/2026/04/28/us-humiliated-germany-merz-europe-iran-war-energy-prices-fuel.html
4•tcp_handshaker•26m ago•0 comments

Free retirement tax calculators – SS tax torpedo, IRMAA cliffs, Roth ladders

https://www.retiresmarter.co/
2•samedame•27m ago•0 comments