frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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 Time, Cost, and Generalization in Distributed Large-Batch Training

https://arxiv.org/abs/2603.18112
1•PaulHoule•1m ago•0 comments

PrismML – Announcing 1-bit Bonsai: The First Commercially Viable 1-bit LLMs

https://prismml.com/news/bonsai-8b
1•janandonly•2m ago•0 comments

Zed: A sans for the needs of the 21st century

https://www.typotheque.com/blog/zed-a-sans-for-the-needs-of-21century
1•kaitak•2m ago•0 comments

Show HN: Hippo, biologically inspired memory for AI agents

https://github.com/kitfunso/hippo-memory
1•kitfunso•2m ago•0 comments

An In-Depth Study of Filter-Agnostic Vector Search on PostgreSQL

https://arxiv.org/abs/2603.23710
1•tanelpoder•2m ago•0 comments

Ormah: A living memory layer for your agents. Local. Private. Portable

https://www.ormah.me/
1•r_spade•5m ago•0 comments

Why Are People Injecting Themselves with Peptides?

https://www.newyorker.com/magazine/2026/04/13/why-are-people-injecting-themselves-with-peptides
1•bookofjoe•5m ago•1 comments

Show HN: Luminus, real-time European and UK electricity grid data via MCP

https://github.com/kitfunso/luminus
1•kitfunso•6m ago•0 comments

The Aesthetics of the Japanese Lunchbox by Kenji Ekuan (Book)

https://mitpress.mit.edu/9780262550352/the-aesthetics-of-the-japanese-lunchbox/
1•xbar•13m ago•1 comments

Bitcoin developers are mostly not concerned about quantum risk

https://murmurationstwo.substack.com/p/bitcoin-developers-are-mostly-not
1•greyface-•14m ago•0 comments

Follow-up from Anthropic on usage limits

https://old.reddit.com/r/ClaudeAI/comments/1sat07y/followup_on_usage_limits/
1•Austin_Conlon•14m ago•0 comments

Ask HN: How do you handle marketing as a solo technical founder?

3•lazarkap•14m ago•1 comments

Show HN: Bypass Instagram/TikTok in-app browsers that silently kill conversions

https://nullmark.tech/
1•melvinmorina•15m ago•0 comments

As an autistic person, Claude is the friend I always wanted but never had

https://old.reddit.com/r/ClaudeAI/comments/1sdq4eu/as_an_autistic_person_claude_is_the_friend_i/
5•mjtk•18m ago•1 comments

NYC Families Need over $125,000 in Income to Live in Any Borough

https://www.bloomberg.com/news/articles/2026-04-06/nyc-families-need-over-125-000-in-income-to-li...
6•boh•18m ago•1 comments

Using Discord on Plan 9

https://pmikkelsen.com/plan9/discord
1•birdculture•22m ago•0 comments

25th Amendment – A Viral Politics Game

https://games-by-will.com/25th-amendment/
2•wjuseck•26m ago•0 comments

True Queue – Task queue extension for Pi coding agent

https://github.com/Krystofee/true-queue
1•krystofee•28m ago•1 comments

Show HN: Compare Codex and Claude Code reviews side by side

https://twitter.com/plannotator/status/2041264274228781520
2•ramoz•29m ago•0 comments

Derek Lowe on "Peptides"

https://www.science.org/content/blog-post/ah-peptides-where-begin
5•A_D_E_P_T•29m ago•3 comments

View Transitions Toolkit

https://chrome.dev/view-transitions-toolkit/
1•aragonite•33m ago•0 comments

Gemma 4 clocking 12 tokens / SEC on Pixel 7A

https://twitter.com/1littlecoder/status/2040830792306425981
1•amrrs•33m ago•0 comments

Rust CLI Toy

https://github.com/smbcloudXYZ/smbcloud-cli
1•kampak212•34m ago•0 comments

AI Is Not Draining the Colorado River

https://www.outsideonline.com/outdoor-adventure/environment/ai-water-use-colorado-river-footprint/
2•greenie_beans•35m ago•0 comments

Artist Alexis Rockman Traces the Unsettling Evolution of a Climate in Crisis

https://www.thisiscolossal.com/2025/12/alexis-rockman-feedback-loop-climate-paintings/
2•akkartik•35m ago•0 comments

Klore – I compiled 3 Alex Hormozi books into an interconnected wiki using LLMs

https://github.com/vbarsoum1/llm-wiki-compiler
1•vbarsoum•36m ago•0 comments

LLM on a 1998 iMac G3 (32 MB RAM)

https://github.com/maddiedreese/imac-llm
1•Philpax•36m ago•0 comments

The App Store Is Flooded with AI Slop, Legitimate Developers Are Paying for It

https://www.forbes.com/sites/josipamajic/2026/03/24/the-apple-app-store-is-flooded-with-ai-slop-a...
4•halcdev•37m ago•0 comments

Relation between Layoffs and AI tools subscriptions

https://www.reddit.com/r/Layoffs/s/QlUYUyjWuP
2•the_arun•40m ago•1 comments

Can AI answer tax questions reliably?

https://accountsdraft.com/resources/can-chatgpt-answer-uk-tax-questions-reliably
1•Rob_Benson-May•40m ago•0 comments