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

Optimizing Delta-Step on the GPU

https://www.execfoo.de/blog/deltastep_shader.html
1•softwarehippie•8s ago•0 comments

Show HN: Modembin – A pastebin that encodes your text into real FSK modem audio

https://www.modembin.com
1•a13x57•52s ago•0 comments

DHS Single Ottoman: Dust Sheet Protection for Your Stored Items

https://dreamhomestore.co.uk/collections/ottoman-beds
1•susanwicks26•1m ago•1 comments

PatternBase – visual permaculture garden designer with climate matching

https://pattern-base.com
1•james-pb•2m ago•1 comments

Video: Waymo seen blocking first responders during West Sixth shooting

https://www.kxan.com/news/austin-mass-shooting/video-waymo-seen-blocking-first-responders-during-...
1•breaker-kind•2m ago•0 comments

AArch64 Bitfield Move (BFM) Instruction

https://nemanjatrifunovic.substack.com/p/aarch64-bitfield-move-bfm-instruction
1•whobre•3m ago•0 comments

State of the Browser 2026

https://jamesg.blog/2026/03/03/state-of-the-browser-2026
1•speckx•4m ago•0 comments

QuitGPT: 700K users say they're done. Are they right?

https://tapestry.news/tech/quitgpt/
1•sonalidee•4m ago•0 comments

Type systems are leaky abstractions: the case of Map.take /2

https://dashbit.co/blog/type-systems-are-leaky-abstractions-map-take
1•todsacerdoti•5m ago•0 comments

MelonLand Surf Club

https://melonland.net/surf-club
1•TigerUniversity•5m ago•0 comments

Show HN: React admin dashboard template that generates UI from a JSON schema

https://github.com/RestDB/codehooks-io-templates/tree/main/react-admin-dashboard
3•jonesatrestdb•5m ago•0 comments

How the Moat Is Moving

https://mashedbits.substack.com/p/the-moat-is-moving
1•JesseObrien•6m ago•1 comments

Show HN: Use Codex/Claude Code as your personal financial assistant

https://github.com/junnjiee/finance-agent
1•jjuniordev•7m ago•1 comments

Learning to recognize rick roll QR codes on sight

https://marcos.ac/blog/rickroll/
1•spaghetti-code•7m ago•0 comments

LLMs can unmask pseudonymous users at scale with surprising accuracy

https://arstechnica.com/security/2026/03/llms-can-unmask-pseudonymous-users-at-scale-with-surpris...
1•alwillis•7m ago•0 comments

Goals vs. Systems

https://web.archive.org/web/20210811125743/https://www.scottadamssays.com/2013/11/18/goals-vs-sys...
1•Brysonbw•10m ago•0 comments

Apple introduces the new MacBook Air with M5

https://www.apple.com/newsroom/2026/03/apple-introduces-the-new-macbook-air-with-m5/
5•Garbage•10m ago•2 comments

I Brought an AI to a Hacking Contest (and Won)

https://medium.com/@pol.avec/i-brought-an-ai-to-a-hacking-contest-and-won-a8c9998745c9
1•pol_avec•11m ago•2 comments

Apple debuts M5 Pro and M5 Max to supercharge the most demanding pro workflows

https://www.apple.com/newsroom/2026/03/apple-debuts-m5-pro-and-m5-max-to-supercharge-the-most-dem...
2•ryanhn•11m ago•0 comments

Show HN: Corepoints – Screen Candidates for AI Proficiency at Scale (Demo Run)

https://corepoints.ai/
1•abhiparuchuri•12m ago•0 comments

Show HN: VellaVeto – Fail-closed runtime proxy for MCP tool calls, in Rust

https://github.com/vellaveto/vellaveto
1•paolovella•12m ago•1 comments

Golioth is now a part of Canonical

https://blog.golioth.io/golioth-is-now-a-part-of-canonical/
1•hasheddan•12m ago•0 comments

Show HN: I got tired of rewriting webhook verification for every provider

https://tern.hookflo.com
3•ontern•12m ago•0 comments

Show HN: PrecisionAudit–An AI copy auditor that actively deletes marketing fluff

https://www.precisionaudit.app
1•rgb1903•12m ago•1 comments

Coasty hit #1 on OSWorld at 82%, beating every major AI lab (written by the AI)

https://coasty.ai/
1•PrateekJ17•12m ago•1 comments

Show HN: Axe – A CLI for running single-purpose LLM agents

https://github.com/jrswab/axe
1•jrswab•12m ago•0 comments

Show HN: FixYou – AI tool that tells you which cancer screenings you need

https://www.fixyou.app/
1•forrestzhong•12m ago•0 comments

Confusing AI with Fed Hikes

https://www.apolloacademy.com/confusing-ai-with-fed-hikes/
1•akyuu•13m ago•0 comments

Apple Introduces MacBook Pro with All‑New M5 Pro and M5 Max

https://www.apple.com/newsroom/2026/03/apple-introduces-macbook-pro-with-all-new-m5-pro-and-m5-max/
29•scrlk•13m ago•16 comments

Relocating Health Care Professionals Worldwide to British Columbia

https://bchealthcareers.ca/
1•TigerUniversity•13m ago•0 comments