frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

FIAF Disaster Handbook: Disaster Preparedness for Audio-Visual Archives

https://www.fiafnet.org/pages/Publications/fiaf-disaster-handbook.html
1•mmooss•25s ago•0 comments

O2Ring Analyzer – CLI for overnight pulse-oximetry CSV exports

https://github.com/nighttimecf/o2ring-analyzer
1•warenstein•2m ago•0 comments

Z80 turns 50 as an open-source drop-in replacement nears DIP40 silicon

https://www.tomshardware.com/tech-industry/zilog-z80-turns-50-as-open-source-replacement-heads-fo...
1•logickkk1•5m ago•0 comments

A portal to random weird websites internet toys, and funny pages

https://openweird.com/
1•raytopia•6m ago•0 comments

What I'd Tell My Team About Competition

https://staysaasy.com/strategy/2026/07/16/what-id-tell-my-team-about-competition.html
1•thisismytest•6m ago•0 comments

"Professor" Jiang Is Not a Prophet [video]

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

Vladimir Putin's Internet Adviser Owns a Torrent Site (2016)

https://torrentfreak.com/vladimir-putins-internet-adviser-owns-a-torrent-site-160119/
4•Cider9986•9m ago•1 comments

Apple account email address disclosure via Mail app

https://lapcatsoftware.com/articles/2026/7/9.html
3•frizlab•10m ago•0 comments

Show HN: A gallery of browser-based PDF imposition and printing templates

https://pdfpress.app/gallery
2•jp1016•12m ago•0 comments

AI Chip Startup Etched Is in Talks for $20B Valuation

https://www.wsj.com/tech/ai/ai-chip-startup-etched-is-in-talks-for-20-billion-valuation-caf1787d
2•bookofjoe•13m ago•1 comments

Sea Peoples

https://en.wikipedia.org/wiki/Sea_Peoples
2•skibz•19m ago•0 comments

Blindsight and Gorgias: The Chinese Room and Sophistry

https://blog.sajberpank.com/posts/blindsight-and-gorgias-the-chinese-room-and-sophistry/
1•sajberpank•20m ago•0 comments

Why do you use GPT-5.6 and kimi k3 inside of Claude Code?

https://twitter.com/theo/status/2078217355780624864
1•shenli3514•21m ago•0 comments

My Hunt for the Original McDonald's French-Fry Recipe (2020)

https://www.atlasobscura.com/articles/original-mcdonalds-french-fry-recipe
2•monkeydust•21m ago•0 comments

Neither GCC nor Clang are compliant with standard C++

https://sebsite.pw/w/20260708-badstdcxx.html
3•birdculture•25m ago•0 comments

Starfish Prime

https://en.wikipedia.org/wiki/Starfish_Prime
1•georgecmu•28m ago•0 comments

HMD Touch 4G

https://www.hmd.com/en_int/hmd-touch-4g
14•thisislife2•33m ago•9 comments

OpenAI is breaking Silicon Valley unwritten code. That's why Apple is so angry

https://www.businessinsider.com/openai-breaking-silicon-valley-unspoken-rule-apple-talent-2026-7
2•RestlessMind•34m ago•0 comments

I Cut an AI Agent's Token Use by 94%

https://vivekhaldar.com/articles/compiling-an-ai-agent-skill/
1•gmays•34m ago•0 comments

Show HN: Kimi K3 spent nearly 8 hours building this 78-card tarot site

https://askciela.com/
1•lilyucb•34m ago•0 comments

Show HN: Waylou Slack Is Open

https://join.slack.com/t/waylou/shared_invite/zt-4491sutoj-0nXfXIsrqLm3UvwHg5mmtA
1•Emirhan123•34m ago•1 comments

Google is open-sourcing its 3D emoji

https://www.theverge.com/design/967606/google-open-source-3d-emoji
1•Brajeshwar•35m ago•1 comments

Kimi 3: What does the future look like for humanity today?

https://duttakapil.substack.com/p/reaction-to-kimi-3-what-does-the
1•duttakapil•38m ago•1 comments

PyCon US 2026 Recap

https://katherinemichel.github.io/blog/conferences/pycon-us-2026-recap.html
1•KatiMichel•38m ago•0 comments

Doom in MS Paint from Mark Russinovich

https://github.com/markrussinovich/DoomPaint
1•samch•39m ago•1 comments

Show HN: Pgnudge – tell your app which Postgres tables just changed

https://github.com/janbjorge/pgnudge
1•jeeybee•40m ago•0 comments

Show HN: Threads Management CLI and Skills

https://github.com/mrhustlex/threads-api-cli-skills
1•mrhustlex•40m ago•0 comments

Show HN: Run a 120B-parameter MoE on Android mid-range phone CPU-only llama.cpp

https://github.com/Helldez/BigMoeOnEdge
1•Helldez•40m ago•0 comments

World Cup Picture Puzzle Game

https://pic-puzzle-khaki.vercel.app/
1•frankensteins•41m ago•1 comments

Resolution Horizon – Finding the mathematical limit where AI overfits to noise

https://github.com/bjoern-janson/resolution-horizon
1•bjoern_janson•42m 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).