frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Mythos 5 Cleared by US for wider use

https://www.bloomberg.com/news/articles/2026-06-26/us-allows-trusted-partners-to-use-anthropic-s-...
1•DaveJorg•1m ago•0 comments

Software Is Becoming Marketing

https://www.terezatizkova.com/writing/software-abundance
2•tylerdane•7m ago•0 comments

Cybersecurity firms targeted by fraudulent OpenAI organization invites

https://www.bleepingcomputer.com/news/security/cybersecurity-firms-targeted-by-fraudulent-openai-...
1•Timofeibu•10m ago•0 comments

For Peter

https://lucybellwood.com/for-peter/
2•wonger_•13m ago•0 comments

How China Is Gutting Western Automakers (2025)

https://newsletter.dunneinsights.com/p/how-china-is-gutting-western-automakers
1•toomuchtodo•14m ago•0 comments

A man who did nothing, brilliantly

https://theidlegazette.beehiiv.com/p/the-man-who-did-nothing-brilliantly-5
1•vinhnx•19m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
1•herbertl•20m ago•0 comments

National College Entrance Examination Collection - Math – China

https://github.com/deekur/gaokaomath
1•pm2222•28m ago•0 comments

Daytona is going closed source. Here's why

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
3•david_shi•36m ago•0 comments

Thermodynamic gravity explains cosmic acceleration without dark energy

https://phys.org/news/2026-06-thermodynamic-approach-gravity-cosmic-dark.html
2•stevenjgarner•45m ago•1 comments

Study on the effects of listening to podcasts on headphones vs. speakers

https://www.sciencedirect.com/science/article/abs/pii/S0749597822000176
1•Curiositry•48m ago•0 comments

Being a Dad

https://www.derekthompson.org/p/three-reasons-to-be-a-parent
2•Curiositry•53m ago•1 comments

AI Erodes a Legacy of Reading

https://molochinations.substack.com/p/ai-erodes-a-legacy-of-reading
6•domhudson•53m ago•2 comments

The Permission Slip

https://www.cringely.com/2026/05/28/the-permission-slip/
1•B1FF_PSUVM•1h ago•0 comments

Iterating Faster with TypeScript 7

https://code.visualstudio.com/blogs/2026/06/26/iterating-faster-with-ts-7
4•soheilpro•1h ago•0 comments

Show HN: Boot a tiny app-making OS inside an AI chat

https://hollingsworthd.github.io/RAu/
1•logn•1h ago•0 comments

The Impacts of Unauthorized Immigration on U.S. Labor and Housing Markets

https://www.dallasfed.org/research/papers/2026/wp2607
1•nradov•1h ago•1 comments

Enterprise AI customers pulling back from OpenAI and Anthropic as costs mount

https://qz.com/enterprise-ai-spending-openai-anthropic-roi-pullback-062626
4•toomuchtodo•1h ago•5 comments

Compiler Education Deserves a Revolution

https://thunderseethe.dev/posts/compiler-education-deserves-a-revoluation/
3•azhenley•1h ago•0 comments

I Co-Founded Wikipedia. Now I'm Banned for Life

https://www.thefp.com/p/larry-sanger-wikipedia-co-founder-banned
10•bko•1h ago•4 comments

Show HN: Tested – AI Tools Scored by a Panel of LLMs (Claude, GPT, Gemini, Grok)

https://trytested.com
1•pro_methe5•1h ago•0 comments

What's the value of the Biblical half shekel?

https://www.chabad.org/library/article_cdo/aid/673063/jewish/Whats-the-value-of-the-biblical-half...
3•teleforce•1h ago•1 comments

Show HN: GetBlocked – a local-only Chrome extension for blocking web trackers

https://github.com/alex-w-developer/GetBlocked/
7•sudo_cowsay•1h ago•3 comments

Indus civilisation reveals its volumetric system

https://www.thehindu.com/news/national/Indus-civilisation-reveals-its-volumetric-system/article16...
1•teleforce•1h ago•0 comments

Evolving the Node.js Release Schedule

https://nodejs.org/en/blog/announcements/evolving-the-nodejs-release-schedule
1•thunderbong•1h ago•0 comments

Greatgramps: A static site generator for GRAMPS family trees

https://bennuttall.com/blog/2026/06/greatgramps/
1•benn_88•1h ago•0 comments

Join .agent – Pre-Register Your Domain Free

https://agentcommunity.org/join
3•Anon84•1h ago•2 comments

The State of the AI Economy

https://intelligence.exponentialview.co/
2•marc__1•1h ago•0 comments

How a Star Wars Lego Dispute Triggered an Armed Police Raid in Utah

https://www.wsj.com/us-news/how-a-star-wars-lego-dispute-triggered-an-armed-police-raid-in-utah-c...
1•fortran77•1h ago•1 comments

Building While Becoming

https://pushapaula.substack.com/
2•paulawp•1h 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).