frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Isis Burried Treasures

https://newlinesmag.com/reportage/the-buried-treasure-left-behind-by-the-islamic-state/
1•xaxbxcxdxe•28s ago•0 comments

City of Slop

https://www.nature.com/articles/d41586-026-02414-7
1•Brajeshwar•1m ago•0 comments

Hertzfeld, Andy oral history, part 1 of 2 (2025)

https://www.computerhistory.org/collections/catalog/300000188/
1•mpweiher•1m ago•0 comments

Unpermissioned Research

https://pluralistic.net/2026/09/02/scrape-scrope-scrap/
3•hn_acker•2m ago•0 comments

PostHog – We make your product self-driving

https://posthog.com/
1•evo_9•2m ago•0 comments

Anthropic launches AI agent blueprints for retailers ahead of holiday shopping

https://www.reuters.com/business/retail-consumer/anthropic-launches-ai-agent-blueprints-retailers...
1•cl42•2m ago•0 comments

Bash Is the Glue: Why Your Terminal Is the Real Superpower Behind Coding LLMs

https://www.innerkore.com/blog/bash-glue-terminal-real-superpower-behind-coding-llms/
1•gagan2020•3m ago•0 comments

Static Allocation, Constant Work

https://matklad.github.io/2026/09/02/static-allocation-constant-work.html
1•surprisetalk•6m ago•0 comments

Record-High 89% in U.S. Say Government Corruption Widespread

https://news.gallup.com/poll/713933/record-high-say-government-corruption-widespread.aspx
3•giuliomagnifico•6m ago•0 comments

Our team is now 5 devs and 45 agents, all in Slack

https://www.flintai.dev/blog-posts/our-team-is-now-composed-of-5-devs-and-45-agents-all-in-slack
3•morilla_chant•6m ago•0 comments

Cow Plays EVE Online and I Don't Know If She's Winning or Not

https://kotaku.com/eve-online-cow-plays-twitch-stream-fenris-creations-2000730532
1•pavel_lishin•6m ago•0 comments

Gallup Poll: Record-High 47% Want Unions to Have More Influence

https://news.gallup.com/poll/713936/record-high-unions-influence.aspx
3•MilnerRoute•7m ago•0 comments

The New Jim Crow: Mass Incarceration in the Age of Colorblindness

https://en.wikipedia.org/wiki/The_New_Jim_Crow
1•chistev•7m ago•1 comments

In panic over uncovered data center docs, Entergy seeks to restrain journalists

https://arktimes.com/arkansas-blog/2026/09/01/in-a-panic-over-mistakenly-shared-documents-entergy...
1•CGMthrowaway•8m ago•1 comments

Show HN: I built Stardew Valley but you pay for everything

https://pixelhof.com
1•robinfaraj•8m ago•0 comments

ThoughtDAG can now turn local coding-agent sessions into editable context graphs

https://github.com/chenxiachan/thoughtdag
1•chatchan•10m ago•1 comments

Mac App Store Apps Can Now Drop Support for Intel Macs

https://www.macrumors.com/2026/09/01/mac-app-store-intel-mac-support/
1•ValentineC•11m ago•0 comments

OpenAI Lawsuits Mount over Canadian School Shooting

https://www.wsj.com/us-news/law/openai-lawsuits-mount-over-canadian-school-shooting-ca24c762
5•JumpCrisscross•12m ago•0 comments

Show HN: A free phone number that live-interprets calls between 47 languages

https://translatemycall.com
1•kolchinski•12m ago•0 comments

Eternal September

https://en.wikipedia.org/wiki/Eternal_September
4•Naac•13m ago•0 comments

Secret 'messages' in cat pee let felines identify each other

https://www.livescience.com/animals/cats/cats-have-unique-chemical-fingerprints-in-their-pee
2•gmays•14m ago•0 comments

New Heart Attack Definitions Could Lead to Better Care for Women

https://nautil.us/new-heart-attack-definitions-could-lead-to-better-care-for-women-1284697
2•Brajeshwar•14m ago•0 comments

Aloe = Scheme and Smalltalk and Types

https://github.com/dharmatech/2026-09-02-aloe-racket
1•dharmatech•14m ago•0 comments

All Wired Up

https://casualarchivist.substack.com/p/wired-up
1•speckx•14m ago•0 comments

Sharing Application State in a URL

https://ivakin.dev/blog/state-in-url
1•Minhir•15m ago•1 comments

$1 coin with Trump's face and gold finish to go on sale

https://apnews.com/article/trump-coin-america-250-gold-817c62abfcec862b8c1ec622e5809ab4
1•geox•15m ago•0 comments

Sold as in the advertisement. Refused when its pixels died

https://sonybravia.com/
1•cute_boi•16m ago•0 comments

Paint.net 5.2 alpha now runs on Linux

https://forums.paint.net/topic/134562-paintnet-52-alpha-build-9739/
9•judah•18m ago•0 comments

Sender Reputation Protects Email Delivery

https://www.maxprog.com/site/blog/post.php?id=3020&topic=How-Sender-Reputation-Protects-Email-Del...
2•maxprog•19m ago•0 comments

Show HN: G3M – MCP server for physical outbound

https://g3m.co/
2•davismartens•21m 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).