frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

TSMC Eyes Tripling Arizona Investment to $465B in Tariff Deal

https://mlq.ai/news/tsmc-eyes-tripling-arizona-investment-to-465-billion-in-tariff-deal/
1•pieterr•31s ago•0 comments

Disney Sends ByteDance an AI Trophy with a Cease and Desist over Seedance 2.0

https://gizmodo.com/disney-sends-bytedance-an-ai-trophy-in-the-form-of-a-cease-and-desist-letter-...
1•joyfulmantis•46s ago•0 comments

Progress Without Disruption

https://www.chrbutler.com/progress-without-disruption
1•headalgorithm•48s ago•0 comments

Exjournalist – Hacker News for Writers

https://exjournalist.com/articles/1
3•lucianmarin•3m ago•0 comments

So what's the next word, then?

https://matthias-kainer.de/blog/posts/so-whats-the-next-word-then-/
2•andsoitis•4m ago•0 comments

Stop closing the door: fix the house

https://angiejones.tech/stop-closing-the-door-fix-the-house/
1•andsoitis•5m ago•0 comments

Data Is Code (2020)

https://blog.information-superhighway.net/data-is-code
1•tosh•5m ago•0 comments

Show HN: This is my Shell

https://lorentz.app/blog-item.html?id=this-is-my-shell
1•baalimago•6m ago•0 comments

GE-Proton10-31

https://github.com/GloriousEggroll/proton-ge-custom/releases/tag/GE-Proton10-31
1•linux4dummies•8m ago•0 comments

A Wooden Laser-Cut Topo Map of Portland, Me

https://theshamblog.com/a-wooden-laser-cut-topo-map-of-portland-me/
1•japhyr•10m ago•0 comments

Global Business Tycoon

https://store.steampowered.com/app/4332850/Global_Business_Tycoon/
1•luckypowa•11m ago•0 comments

Lost City – open-source server for old Runescape, for historical preservation

https://github.com/LostCityRS/Content
1•andrepd•12m ago•0 comments

Optique 0.10.0: Runtime context, config files, man pages, and network parsers

https://github.com/dahlia/optique/discussions/108
1•dahlia•13m ago•0 comments

Deep in China's Mountains, a Nuclear Revival Takes Shape

https://www.nytimes.com/interactive/2026/02/15/world/asia/china-nuclear.html
3•JumpCrisscross•14m ago•0 comments

We Need Apocalypse-Proof Software

https://alavi.me/blog/we-need-apocalypse-proof-software/
3•yolkedgeek•14m ago•1 comments

Fragments: February 9

https://martinfowler.com/fragments/2026-02-09.html
2•andsoitis•15m ago•1 comments

A Single Reason to Not Vibe Code

https://asindu.xyz/a-single-reason-to-not-vibe-code
2•max_•16m ago•1 comments

Calculate PPP-adjusted fair prices in USD

https://github.com/sachithrrra/ppp
1•sachithrrra•19m ago•0 comments

I built a Postman alternative for terminal users

https://github.com/Queaxtra/raco
1•Queaxtra•22m ago•1 comments

Penrose: From mathematical notation to beautiful diagrams

https://penrose.cs.cmu.edu/siggraph20
1•surprisetalk•22m ago•0 comments

Show HN: GAIA – open-source, Proactive AI assistant to manage your digital life

https://github.com/theexperiencecompany/gaia
4•aryanranderiya•23m ago•3 comments

Show HN: AI Strategy and Planning hub for solo founders

https://aishortcutlab.com/articles/solo-founders/ai-strategy-and-planning
1•harran•24m ago•1 comments

Show HN: HookTrace – Inspect failed webhooks, payloads and retries

https://www.hooktrace.xyz
1•Mohammad_Yasir•24m ago•0 comments

Show HN: A universal code formatter using Rust, Tree-sitter, and Rhai

https://github.com/neatify-tech/neatify
1•its-a-new-world•25m ago•1 comments

RIP Stéphane Picq, creator of the Dune game soundtrack

https://en.wikipedia.org/wiki/St%C3%A9phane_Picq
2•sgt•26m ago•0 comments

Kimi Claw

https://www.kimi.com/bot
3•pretext•28m ago•0 comments

Mathematics Subject Classification [pdf]

https://zbmath.org/static/msc2020.pdf
1•nill0•29m ago•0 comments

Semantic Diffusion (2006)

https://martinfowler.com/bliki/SemanticDiffusion.html
1•andsoitis•31m ago•0 comments

Ask HN: How to sell SaaS without AI features in 2026?

1•robeym•32m ago•1 comments

Taste for Makers

https://paulgraham.com/taste.html
1•gmays•32m ago•0 comments
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).