frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Stop the bloatware in modern Linux. Noctalia V5 and labwc and dinit [video]

https://www.youtube.com/watch?v=z3sg8nXkvgo
1•grigio•4m ago•0 comments

Imaging exoplanets using Einstein Rings within 1 lifetime [video]

https://www.youtube.com/watch?v=go-50Dpzs20
2•OSaMaBiNLoGiN•11m ago•0 comments

Make a devtool agents want

https://betocmn.com/blog/make-a-devtool-agents-want/
3•thedreammachine•11m ago•1 comments

New quantum computer sets a high watermark for accuracy

https://theconversation.com/a-new-quantum-computer-sets-a-high-watermark-for-accuracy-are-we-on-t...
2•giuliomagnifico•14m ago•0 comments

Heat, humidity and housing: why British heatwaves hit differently

https://theconversation.com/heat-humidity-and-housing-why-british-heatwaves-hit-differently-286064
1•zeristor•15m ago•0 comments

Show HN: I replaced my X analytics dashboard for a daily "what to do next" brief

https://trumpet.house
3•chrislxy•19m ago•0 comments

We All Depend on Open Source. We Will Defend It Together

https://akrites.org/letter/
3•dhruv3006•19m ago•0 comments

Show HN: Turn any X account into an RSS feed

https://rss.gurify.com/
4•slavba•21m ago•1 comments

Ask HN: What do you still love most about AI?

2•akashwadhwani35•24m ago•1 comments

Increasing Photon Upconversion Efficiency with Structural Exciton Localization

https://hackaday.com/2026/06/25/increasing-photon-upconversion-efficiency-with-structural-exciton...
2•grajmanu•24m ago•0 comments

A Charter School Spent $500k on AI-Powered Humanoid Robots. Was It Worth It?

https://voiceofsandiego.org/2026/06/24/a-charter-school-spent-500000-on-ai-powered-humanoid-robot...
2•the-mitr•24m ago•0 comments

Show HN: OmniCore – A neural engine for multimodal NPC agency (Beta)

https://medium.com/@www.ahadprogamer/introducing-omnicore-a-neural-brain-for-your-games-npcs-1612...
2•Ahadprogamer•25m ago•0 comments

Following a USPS smishing kit through censys DNS data

https://censys.com/blog/following-a-usps-smishing-kit-through-censys-dns-data/
2•sans_souse•25m ago•0 comments

I feed my coding agent JSON instead of screenshots

https://slimsnap.ai/blog/json-not-screenshots
3•bickov•27m ago•0 comments

Daily Stock Analysis

https://github.com/ZhuLinsen/daily_stock_analysis
1•grajmanu•27m ago•0 comments

Turning brain prediction models into testable explanations

https://www.microsoft.com/en-us/research/blog/understanding-the-brain-with-ai-driven-explanations...
1•grajmanu•29m ago•0 comments

Elon Musk's SpaceX plans Starlink mobile push into US consumer market

https://www.ft.com/content/42af0f15-3aa9-49b7-b429-4a39540af03e
2•ilreb•30m ago•0 comments

Crypto Bear Market Playbook 2026: How to win by not dying

https://hduynam99.substack.com/p/crypto-bear-market-playbook-2026
2•hoangthuytrang•31m ago•0 comments

OpenAI Mulls Delaying IPO Until 2027

https://www.investors.com/news/technology/openai-ipo-ai-startup-mulls-delaying-until-2027-spacex/
2•helsinkiandrew•32m ago•0 comments

Making Equality Saturation Usable for Developing Vectorized Compilers

https://dl.acm.org/doi/full/10.1145/3802603
1•matt_d•32m ago•0 comments

Modern GPU Programming for MLSys Book

https://mlc.ai/modern-gpu-programming-for-mlsys/
1•tanelpoder•33m ago•0 comments

Pliny the Younger's Letters About the Eruption of Vesuvius

https://www.pompeii.org.uk/s.php/tour-the-two-letters-written-by-pliny-the-elder-about-the-erupti...
2•pncnmnp•37m ago•0 comments

DeepSeek Is Recruiting

https://app.mokahr.com/social-recruitment/high-flyer/140576
3•RIshabh235•41m ago•0 comments

Reading AI Model Compilation in MLIR Through the Lens of Formal Theories

https://arxiv.org/abs/2606.25244
2•matt_d•41m ago•0 comments

Context loss is the real reason AI coding slows down engineering teams

https://brunelly.com/
3•RihabAI•42m ago•0 comments

AI in research: we need to stop treating every AI-related issue as misconduct

https://www.frontiersin.org/news/2026/06/26/ai-in-research-why-we-need-to-stop-treating-every-ai-...
2•giuliomagnifico•48m ago•0 comments

How the DeepMind mafia brought the AI boom to London

https://www.ft.com/content/6a3a46b9-4725-469e-a909-917768a74afb
1•mmarian•48m ago•1 comments

Trump administration asks OpenAI to stagger release of new model

https://ca.finance.yahoo.com/news/trump-administration-asks-openai-stagger-204300837.html
2•Palmik•50m ago•0 comments

AI coding will be more expensive than human developers

https://www.heise.de/en/news/Forecast-By-2028-AI-coding-will-be-more-expensive-than-human-develop...
1•slow_typist•50m ago•0 comments

4chan dating app is FOSS

https://github.com/duolicious/duolicious
2•xc90•50m 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).