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

How are you reducing LLM token costs for async workflows?

https://github.com/parallem-ai/parallem
1•alexliu79•1m ago•1 comments

Balsamiq AI

https://balsamiq.com/product/ai/
1•ilt•4m ago•0 comments

StackTrove: Encrypted local registry for all your side projects

https://github.com/sennaBruno/stacktrove
1•essieli•8m ago•0 comments

Justin Sun Accuses Trump's WLFI Cryptocurrency of Hiding Wallet Freeze Function

https://beincrypto.com/justin-sun-slams-world-liberty-financials-blacklist-feature/
2•jrflowers•13m ago•0 comments

'The gravest crime against humanity': What does the UN vote on slavery mean?

https://www.bbc.com/news/articles/c0rxqng5pyno
1•gpi•15m ago•0 comments

IBM AP-101 general-purpose computer [pdf]

https://gandalfddi.z19.web.core.windows.net/Shuttle/IBM%20AP-101S%20General%20Purpose%20Computer%...
1•__patchbit__•19m ago•0 comments

Your Harness, Your Memory

https://blog.langchain.com/your-harness-your-memory/
2•tanelpoder•22m ago•0 comments

Show HN: Tokemon – monitor token use with out refreshing 27 browser tabs

https://github.com/rvantonder/tokemon
1•rvttt•26m ago•0 comments

Overcoming Informational Risk

https://bencornia.com/blog/overcoming-informational-risk
1•bencornia•26m ago•0 comments

Best AI coding interview assistant in 2026

https://www.linkjob.ai/interview-questions/ai-coding-interview-assistant/
1•Silviaaa•30m ago•0 comments

Kindle users in uproar re: latest update, old devices now unusable: 'Fuck You '

https://nypost.com/2026/04/09/tech/kindle-to-cease-support-for-old-devices-causing-user-uproar/
1•1vuio0pswjnm7•30m ago•0 comments

Going Beyond World Models and VLAs

https://generalistai.com/blog/apr-07-2026-beyond-world-models
1•NeoInHacker•32m ago•1 comments

Show HN: Chipmunkify – I used ML to solve audio's dumbest problem

https://www.chipmunkify.com/
1•treelover•34m ago•1 comments

Artemis II: Christina Koch's PCD Failure

1•robgibbons•35m ago•1 comments

Show HN: React Modern Audio Player

https://github.com/slash9494/react-modern-audio-player
1•musgravite•44m ago•0 comments

Haunt, the 70s text adventure game, is now playable on a website

https://haunt.madebywindmill.com
14•jscalo•44m ago•1 comments

A Simple Lofi Player

https://github.com/talwat/lowfi
2•lwhsiao•45m ago•0 comments

Why Do Computers Stop and What Can Be Done About It? (1985) [pdf]

https://pages.cs.wisc.edu/~remzi/Classes/739/Fall2018/Papers/gray85-easy.pdf
1•jruohonen•48m ago•0 comments

Tell HN: Claude-code prompt-cache workaround/fix

1•g4cg54g54•49m ago•0 comments

SFPD investigates apparent shooting near OpenAI CEO Sam Altman's home

https://www.sfchronicle.com/bayarea/article/sam-altman-openai-gunfire-22202648.php
2•throwaway2027•53m ago•2 comments

Uses for Nested Promises

https://blog.jcoglan.com/2026/03/23/uses-for-nested-promises/
1•bkudria•57m ago•0 comments

HN: Distill-CBL, a single-file COBOL-to-WASM compiler in Rust

https://github.com/StealthEyeLLC/distill-cbl
1•stealtheyellc•1h ago•0 comments

AI Image Editor

https://jpgtomp4.com
1•yalvhe2009•1h ago•1 comments

BirdNET-Go – 24/7 realtime bird song analysis

https://github.com/tphakala/birdnet-go
1•darknavi•1h ago•1 comments

Show HN: Turn any YouTube video into something you can use

https://www.pandarecord.com/extension
1•misonic•1h ago•0 comments

Drawing Database – Blueprints for 3D modeling

https://drawingdatabase.com/
1•hyperific•1h ago•0 comments

Ecolibrium Directory

https://github.com/simonlpaige/ecolibrium
1•larrytheworm•1h ago•1 comments

PocketLLM – Run local LLMs from a USB stick (https://pocketllm-site.vercel.app/)

https://github.com/vraj00222/pocketllm
1•vrajpatel00•1h ago•0 comments

Apple's accidental moat: How the "AI Loser" may end up winning

https://adlrocha.substack.com/p/adlrocha-how-the-ai-loser-may-end
42•walterbell•1h ago•26 comments

2014: Black Holes and Supercomputing

https://www.goldengooseaward.org/01awardees/black-holes
1•mooreds•1h ago•0 comments