frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OAuth Applications on Cloudflare

https://developers.cloudflare.com/fundamentals/oauth/
1•tjek•39s ago•0 comments

Gate – deterministic PII redaction for AI agent tool output (Rust)

https://github.com/GaaraZhu/gate
1•gzhuuu•2m ago•0 comments

Show HN: Mini-film, processor of RAW files with XMP profiles – Linux and Rust

https://github.com/alfanick/mini-film/tree/main
1•alfanick•4m ago•0 comments

Are Current Authors Using A.I.? At Least They're Not Plagiarizing

https://dysfunctionalliteracy.com/2026/05/31/are-current-authors-using-a-i-pffft-at-least-theyre-...
1•helloplanets•6m ago•0 comments

Hybrid legal agents can beat frontier models on quality and cost

https://twitter.com/harvey/status/2062218656420167785
1•arnon•6m ago•0 comments

Declarative DSLs for Janet

https://codeberg.org/veqq/declarative-dsls
1•tosh•6m ago•0 comments

Europe turns to Open Source for independence

https://dri.es/europe-turns-to-open-source-for-independence
1•nicola•8m ago•0 comments

Storing Your Passwords Safely: Why I Use KeePass

https://menelaos.vergis.net/posts/Storing-Your-Passwords-Safely-Why-I-Use-KeePass
2•melenaos•9m ago•0 comments

Nordic Media Giant Schibsted Switches to "Pay Or

https://noyb.eu/en/nordic-media-giant-schibsted-switches-pay-or-okay-complaint-filed
2•latexr•10m ago•0 comments

More US Firms Turn to China's DeepSeek over Pricey Silicon Valley AI

https://www.scmp.com/tech/tech-trends/article/3355927/more-us-firms-turn-chinas-deepseek-over-pri...
2•giuliomagnifico•11m ago•0 comments

Asd: A fast, AI-native cat replacement written in Go

https://github.com/orchestrator-dev/asd
1•vsmanu•12m ago•0 comments

Single Cell Genomics Day 2026

https://satijalab.org/scgd26/
2•heckelson•12m ago•0 comments

CLI Tools for Creative Projects

https://www.soniare.net/blog/best-cli-tools-for-creative-projects
1•soniare•14m ago•0 comments

Ask HN: What are your AI assistants doing?

2•teekert•15m ago•0 comments

Stop Blaming React: The Real Performance Problems in Your UI

https://reactdevelopment.substack.com/p/stop-blaming-react-the-real-performance
1•javatuts•16m ago•0 comments

How 'doom spending' is about more than just consumer behaviour

https://www.rte.ie/brainstorm/2026/0603/1576296-doom-spending-young-people-economy-experiences-so...
3•austinallegro•19m ago•1 comments

Show HN: I've hooked up 2D LiDARs to Raspberry Pi, wrote Python library lds2d

https://github.com/kaiaai/lds2d/
2•iliaov•19m ago•1 comments

Show HN: You can now unlearn CSS selectors

https://www.npmjs.com/package/@uindow/css
1•markjivko•20m ago•0 comments

My AI Agent Lives in My Notes App

https://medium.com/@amatyushentsev/my-ai-agent-lives-in-my-notes-app-7c5d79c72126
1•wapasta•20m ago•0 comments

Anthropic's Relentless Race to the Top

https://www.ft.com/content/e17665ea-c5ca-428a-839c-be5c1eacc35c
2•thm•23m ago•1 comments

Virtual power plants could provide energy for data centers

https://www.technologyreview.com/2026/06/03/1138350/virtual-power-plants-data-centers/
2•joozio•25m ago•0 comments

The state says its computer systems are secure. We looked. They're not

https://groundup.org.za/article/sita-says-its-systems-secure-we-looked-this-what-we-found/
3•latein•28m ago•0 comments

VibeOS – Hallucinated Operating System [video]

https://www.youtube.com/watch?v=z3pV6FHvcgM
1•v9v•30m ago•0 comments

Word processing: AmigaOS version of FinalWriter 7.3 announced for end of June

https://www.amiga-news.de/en/news/AN-2026-06-00017-EN.html
1•doener•31m ago•0 comments

What Is Null (2010)

https://wiki.c2.com/?WhatIsNull
1•downbad_•33m ago•0 comments

Safe Made Easy Pt.1: Single Ownership Is (Not) Optional

https://ergeysay.github.io/safe-made-easy-pt1.html
1•mpweiher•35m ago•0 comments

Help choose the animals to go on the UK banknotes

https://www.bankofengland.co.uk/banknotes/help-us-design-our-next-series-of-banknotes
1•johnny_reilly•38m ago•0 comments

Walmart's Answer to Apple Pay Wants to Be Your Favorite Financial App

https://www.bloomberg.com/news/articles/2026-06-02/how-walmart-backed-onepay-is-taking-on-banks
1•petethomas•42m ago•3 comments

Designer: Passed 1000 Commits

2•kaizenb•47m ago•2 comments

Companies' AI Bills Are Bigger Than Ever – and Coming Due

https://www.bloomberg.com/opinion/articles/2026-06-04/the-ai-boom-s-next-test-is-the-roi-worth-th...
2•petethomas•47m ago•0 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).