frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Test the Email Verification Protocol with an origin trial

https://developer.chrome.com/blog/email-verification-protocol-origin-trial
1•nreece•4m ago•0 comments

How IPTV delivery works, end to end

https://iptvproviders.online/
1•cynthial485•6m ago•0 comments

South Korea's AI Bubble Just Popped [video]

https://www.youtube.com/watch?v=hy90LdpEUvQ
1•Bender•11m ago•0 comments

I Tried to Make AI Writing Sound Human by Banning AI Words Through Logit_bias

https://www.vincentschmalbach.com/make-ai-writing-sound-human-logit-bias/
1•vincent_s•11m ago•0 comments

What's the Fewest People That Could Repopulate Earth? [video]

https://www.youtube.com/watch?v=1qIvFpcGkqc
1•gmays•11m ago•0 comments

South Korea's AI Bubble Just Popped – Now What? [video]

https://www.youtube.com/watch?v=qeXpUZTdvsI
2•Bender•13m ago•0 comments

Show HN: Free Image Merger – combine photos in-browser, nothing uploaded

https://freeimagemerger.com/
1•winsonaibuilder•13m ago•0 comments

Could the Most Radical Plane Design Since the Concorde Take on Boeing?

https://www.wsj.com/business/could-the-most-radical-plane-design-since-the-concorde-take-on-boein...
1•fortran77•15m ago•2 comments

Long-Term Data Storage for Home Users [video]

https://www.youtube.com/watch?v=ulh9z-JluBs
1•haloboy777•16m ago•0 comments

Leopold Aschenbrenner's Situational Awareness seeks capital raise after AI rout

https://www.ft.com/content/280336bf-dbed-405f-b38e-5af644a21549
2•fatcatsbestcats•16m ago•1 comments

Finding a job as a WordPress dev has become impossible

https://twitter.com/DenisBosire/status/2082523094506217765
2•jv22222•17m ago•0 comments

I built a Docker image factory in Go – 300 lines, no daemon, full OCI compliance

https://cheikhhseck.medium.com/building-a-docker-image-factory-from-scratch-in-go-e3c2e7127106
1•cheikhdev•19m ago•0 comments

Cursed Knowledge

https://www.jmduke.com/posts/cursed-knowledge.html
1•twapi•24m ago•0 comments

Surviving Dreams

https://www.survivingdreams.com/reinforcement-dreaming/
1•Aeroi•24m ago•1 comments

Why Standard Displays Often Fail in Specialized Products

https://duobond-display.com/news/custom-displays/506.html
1•Todorov•26m ago•0 comments

Matt Damon's Biceps in That 'Odyssey' Fight Scene? They're Hers

https://www.nytimes.com/2026/07/29/style/devyn-dalton-matt-damon-stuntwoman-odyssey.html
1•wslh•26m ago•1 comments

Interview with a Sysadmin in 2026 [Corporate]

https://www.youtube.com/watch?v=I7IHInNJZvE
1•vismit2000•28m ago•0 comments

"Gravity is worth asking about."

https://unsung.aresluna.org/gravity-is-worth-asking-about/
2•nozzlegear•29m ago•0 comments

I Gave Claude One Tool to Edit, Master and Transcribe All My Audio [video]

https://www.youtube.com/watch?v=xiMh3d97QtQ
1•DanHodgetts•29m ago•0 comments

Recursive Self Improvement for Coding Agents

https://cline.ghost.io/recursive-self-improvement-for-coding-agents/
1•jhack•30m ago•0 comments

Opus Dreams – chats that weren't saved

https://opusdreams.vercel.app/
1•NickNaraghi•36m ago•0 comments

The cost of memory: How organisms balance thinking and sensing

https://phys.org/news/2026-07-memory.html
1•the-mitr•39m ago•0 comments

It is past time to upgrade to post-quantum encryption

https://www.economist.com/leaders/2026/07/29/it-is-past-time-to-upgrade-to-post-quantum-encryption
1•AsyncBanana•40m ago•0 comments

Why the future is local app

https://getapps.cafe/blog/why-the-future-is-local-app
1•knlam•42m ago•0 comments

Studying AI in the Wild: Reflections from the AI Work Research Group (2025)

https://onlinelibrary.wiley.com/doi/10.1111/joms.70021
1•Tomte•50m ago•0 comments

Hiring game developers Triumph Arcade

https://www.triumphlabs.com/
1•elidenslow•51m ago•1 comments

Cross-Vendor Semantic Void Matrix: Zero-Byte Outputs in GPT/Claude/Gemini/Kimi

https://zenodo.org/records/21696066
1•rayanpal_•53m ago•0 comments

Building an S3 client with 20x more throughput and single core [video]

https://www.youtube.com/watch?v=-p-Xm7VEqSk
1•jorangreef•57m ago•0 comments

YKK Sells 10B Zippers a Year. How Did It Get So Big?

https://www.wsj.com/style/fashion/ykk-sells-10-billion-zippers-a-year-how-did-it-get-so-big-253a24a2
1•hbcondo714•58m ago•0 comments

Show HN: We quantized Qwen3.6-35B-A3B to 2-bit: 12.3 GB, 225 tok/s on a 4090

https://huggingface.co/EschaLabs/Qwen3.6-35B-A3B-Escha-W2
2•yzh•1h ago•2 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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).