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

Guidelines for Submitting Unicode Emoji Proposals

https://unicode.org/emoji/proposals.html
1•wallflower•1m ago•0 comments

SQL-First PostgreSQL Migrations Without the Magic

https://medium.com/@mailbox.sq7/sql-first-postgresql-migrations-without-the-magic-dd2f383dee2a
2•alzhi7•4m ago•0 comments

A Simple Coding Agent in a Loop with LangChain4j, Jbang, and Gemini

https://glaforge.dev/posts/2026/04/11/a-simple-coding-agent-in-a-loop-with-langchain4j-jbang-and-...
2•mariuz•4m ago•0 comments

Show HN: Minimal mobile HN reader – real-time and dark mode

https://hn.brae.workers.dev/
2•weekendproject•6m ago•0 comments

Flat Error Codes Are Not Enough

https://home.expurple.me/posts/flat-error-codes-are-not-enough/
1•Expurple•7m ago•1 comments

Will there be a social layer for vibe coding?

https://metedata.substack.com/p/metedata-digest-005-vibe-coding-wants
1•young_mete•9m ago•0 comments

MangroveViewer

https://github.com/altilunium/MangroveViewer
1•altilunium•10m ago•0 comments

Strategy as a Language: A Grammar for the Carbon–Silicon Learning Firm

https://jimiwen.substack.com/p/strategy-as-a-language
1•jimiwen•11m ago•0 comments

Is AI the greatest art heist in history?

https://www.theguardian.com/books/2026/apr/12/is-ai-the-greatest-art-heist-in-history
5•Brajeshwar•17m ago•1 comments

Show HN: Agent-Notifications – Real-Time Alerts for OpenClaw and Hermes Agents

https://github.com/Kuberwastaken/agent-notifications
1•kuberwastaken•19m ago•0 comments

From Early Nirvana to Phish, Secret Recordings of 10k Shows Are Now Online

https://blockclubchicago.org/2026/04/10/from-early-nirvana-to-phish-a-chicago-fans-secret-recordi...
1•Anon84•21m ago•0 comments

Claude Code Checkpoints

https://github.com/yahnyshc/daedalus
1•maksyyy•24m ago•0 comments

AI and Psi with Paul Werbos (Inventor of Backpropagation) [video]

https://www.youtube.com/watch?v=rMh-snQ1YWU
2•binyu•25m ago•0 comments

Show HN: Codex Workers AI Proxy – Use Workers AI models with Codex CLI

https://github.com/pitzcarraldo/codex-workers-ai-proxy
2•mrnoname•28m ago•1 comments

Show HN: ReverseYC

https://rocketplace.org/reverseyc
2•remarketme•31m ago•1 comments

Show HN: NeZha – An Open-Source Agentic Development Environment (ADE)

https://nezha.hanshutx.com/en/
1•markhan-nping•34m ago•0 comments

Building a 10BASE5 "Thick Ethernet" network (2012)

https://www.mattmillman.com/projects/10base5/
1•accrual•35m ago•0 comments

Show HN: A personality first matchmaking app

https://www.connectwithember.com/
1•willeyy•37m ago•0 comments

LLMs don't want pixels, they want tools

https://www.bobbytables.io/p/the-future-is-apis
1•btables•37m ago•0 comments

Distribution is the only moat AI can't kill

https://dheer.co/only-moat-ai-cant-kill/
1•bushido•41m ago•0 comments

Moltis – A secure persistent personal agent server in Rust

https://moltis.org/
1•rekl•41m ago•0 comments

Regional Variation in the Performance of ASR Models on Croatian and Serbian

https://aclanthology.org/2026.vardial-1.20/
1•taubek•43m ago•0 comments

Trump vows to blockade Strait of Hormuz after talks stumble

https://www.reuters.com/world/asia-pacific/us-iran-talks-pause-now-disagreements-remain-2026-04-11/
11•andyjohnson0•46m ago•2 comments

PostgreSQL Credential Rotation in Production: A Zero-Downtime Runbook

https://www.elydb.com/blog/postgresql-credential-rotation-production
1•thunderbong•47m ago•0 comments

Ask HN: What's your experience with PoW captchas against form spam?

2•pentacent_hq•48m ago•1 comments

A full-featured terminal user interface for hledger plain-text accounting

https://github.com/thesmokinator/hledger-textual
1•willm•50m ago•0 comments

Ask HN: What are all the bad things that AI companies have done which we forgot

1•Imustaskforhelp•51m ago•0 comments

Ask HN: Is Zero Trust Architecture Overkill?

2•devinabox•54m ago•0 comments

Show HN: Formal – Formal verification for AI-generated code using Lean 4

https://github.com/yamafaktory/formal
3•yamafaktory•56m ago•0 comments

Show HN: What's SBTI

https://whatssbti.com/
2•aitooltrek-com•57m ago•0 comments