frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The next frontier of innovation is coming back to the physical world

https://productnow.ai/blogs/a-dose-of-hope-for-the-future
1•kadhirvelm•4m ago•0 comments

Smashed Toilet Phone Web Server

https://www.offthebricks.com/articles/smashed-toilet-phone-web-server
2•mircerlancerous•10m ago•0 comments

DBOS Network Sensing: A Web Services Approach to Collaborative Awareness

https://arxiv.org/abs/2509.09898
2•teleforce•11m ago•0 comments

Decouple the Agent: Why Prompts, Tools, and Models Don't Belong in Your Client

https://vivgrid.com/decoupling-prompts-tools-models-from-agent-client
2•fanweixiao•11m ago•0 comments

AI Has Amnesia. Here's Every System Built to Fix It

https://medium.com/@alanayalag/your-ai-has-amnesia-heres-every-system-built-to-fix-it-ad7dee117a75
2•AlanAAG•13m ago•0 comments

Ask HN: How do you design CLIs for agents?

2•vokneruk•18m ago•0 comments

Lsp85 – an lsp for the Intel 8085 assembly

2•irhs•18m ago•0 comments

Show HN: Go-To-Market for Engineers article series

https://supramono.com/blog/go-to-market-for-engineers-distribution-is-the-product/
3•supramono•26m ago•0 comments

Netlify Drop

https://app.netlify.com/drop
2•skogstokig•26m ago•0 comments

Tech's Next IPO Wave Promises a Charitable Windfall

https://www.wsj.com/finance/investing/techs-next-ipo-wave-promises-a-charitable-windfall-885a1e74
3•builtbystef•38m ago•0 comments

iOS 27's Reworked Stub Islands

https://codecolor.ist/posts/2026-06-15-ios27-reworked-stub-islands/
3•gok•39m ago•0 comments

Argentina Wants to Let AI Own Companies. Here's What That Means

https://www.forbes.com/sites/anishasircar/2026/06/10/ai-owned-companies-argentina/
2•pseudolus•40m ago•0 comments

CoCoMS (Construction Correspondence Management System)

2•cmina•41m ago•0 comments

Sync – Quality Control and Project Management System for AI Agents

https://sync.buzz
2•nikolai_evseev•43m ago•0 comments

Polis – the #1 tool for AI agent coordination

https://polis-protocol.vercel.app/#
2•lucius_gc•46m ago•0 comments

Why You Need to Become a Neuro-Punk Right Now

https://medium.com/@artem-x/why-you-need-to-become-a-neuro-punk-right-now-f266223ac440
2•theorchid•50m ago•0 comments

US and Iran reach cease fire agreement

https://www.nytimes.com/live/2026/06/14/world/iran-war-trump-us
4•koolba•55m ago•0 comments

Molecular Diversity as a Biosignature

https://www.nature.com/articles/s41550-026-02864-z
2•wslh•1h ago•0 comments

Kevin Warsh Wants the Fed to Stop Explaining Everything

https://www.wsj.com/economy/central-banking/fed-warsh-chair-communication-d2f2d226
3•Cider9986•1h ago•1 comments

BEAVER: Enterprise benchmark for LLM Text-to-SQL from private data warehouses

https://beaverbench.github.io/
2•teleforce•1h ago•0 comments

Show HN: Astro Sidey – A simple, minimalistic personal blog theme

https://github.com/odhyp/astro-sidey
2•odhy•1h ago•0 comments

Your Database Is the Bottleneck. Not Your Code

https://howtocenterdiv.com/beyond-the-div/your-database-is-the-bottleneck-not-your-code
2•mooreds•1h ago•0 comments

On, Good Advice Delivered Poorly

https://makc.co/essays/good-advice-delivered-poorly/
2•makc•1h ago•0 comments

Under the River

https://shopify.engineering/under-the-river
2•mooreds•1h ago•0 comments

The More Confident in AI Security, the More Likely Breached, Study Finds

https://www.itsecurityguru.org/2026/06/11/the-more-confident-organizations-are-in-their-ai-securi...
4•mooreds•1h ago•0 comments

The hallucinogenic mushroom that contains no known psychedelic

https://psychedelics.co.uk/news/a-mushroom-genus-that-gets-people-high-but-not-the
25•thunderbong•1h ago•11 comments

Learn to Think in Systems, It'll Put You Ahead of 99% of People [video]

https://www.youtube.com/watch?v=mjTgkm-h__M
3•ohjeez•1h ago•0 comments

Plots, love letters and remedies: The medieval secrets being revealed by AI

https://www.bbc.com/future/article/20260527-plots-love-letters-and-diplomacy-the-medieval-secrets...
3•leecoursey•1h ago•0 comments

git-stk: Git-native stacked branch workflow helper

https://github.com/lararosekelley/git-stk
3•sayonara_lara•1h ago•4 comments

The rich aren't your role models

https://theslowburningfuse.wordpress.com/2026/06/14/the-rich-arent-your-role-models-theyre-your-o...
115•Refreeze5224•1h ago•44 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).