frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Spirit Flight Attendants Fight Google's Data Bid for AI

https://www.wsj.com/pro/bankruptcy/spirit-flight-attendants-fight-googles-data-bid-for-ai-e939e049
1•thm•55s ago•0 comments

Remembering the Apple II and IIGS from High School

https://www.goto10retro.com/p/remembering-the-apple-ii-and-iigs
1•ibobev•55s ago•0 comments

Golf Tours in One Place

https://golfhub.dev
1•lucaserla•58s ago•0 comments

Why '80s Music Sounds So Weirdly Synthetic (and the Gear That Did It)

https://comuniq.xyz/Music/post?t=1591
1•01-_-•1m ago•0 comments

NBA 2K27's new MyNBA Legacy mode sounds a lot like basketball Crusader Kings 3

https://www.rockpapershotgun.com/hold-the-throne-nba-2k27s-new-mynba-legacy-mode-sounds-a-lot-lik...
1•Tomte•1m ago•0 comments

The city of Cupertino is 70.9% Asian. A new TV show set there ignores this

https://www.sfgate.com/sf-culture/article/cupertino-tv-show-22395253.php
2•randycupertino•4m ago•0 comments

Distributed Consensus on S3

https://github.com/io-s2c/s2c/blob/main/docs/design-doc.md
1•mzazaipsc•5m ago•0 comments

Stripe letter to investors: Founders say we're already in the Singularity [pdf]

https://s3.documentcloud.org/documents/28565866/stripes-august-2026-investor-letter.pdf
2•ryan_j_naughton•6m ago•0 comments

State probes nonprofit We Heart Seattle over drug cleanup operations

https://www.thecentersquare.com/washington/article_f6941a86-0498-4a3e-a042-898e1267610f.html
1•pudgywalsh•7m ago•0 comments

Paleocene–Eocene Thermal Maximum

https://en.wikipedia.org/wiki/Paleocene%E2%80%93Eocene_thermal_maximum
1•simonebrunozzi•8m ago•0 comments

Ask HN: Did I do the right thing using AI?

1•simondukr•8m ago•0 comments

Joint Statement from FR, DE, IT, UK, NL, No, CA on E1 West Bank Settlement Plan

https://www.governo.it/it/articolo/joint-statement-leaders-france-germany-italy-and-united-kingdo...
1•dgellow•8m ago•0 comments

Anthropic Expects to Match SpaceX's Record IPO Size or Top It

https://www.bloomberg.com/news/articles/2026-08-20/anthropic-expects-to-match-spacex-s-record-ipo...
2•helsinkiandrew•8m ago•0 comments

Brancher un LLM sur un catalogue produit avec Django

https://tonydevweb.com/articles/brancher-llm-catalogue-produit.html
4•tonydevweb•9m ago•1 comments

What I learned building an AI applic

1•simondukr•9m ago•0 comments

Why Aren't Smart People Happier?

https://www.experimental-history.com/p/why-arent-smart-people-happier
1•rafaelc•9m ago•0 comments

AVX Bitwise ternary logic [VPTERNLOGD] instruction busted (2024)

https://arnaud-carre.github.io/2024-10-06-vpternlogd/
1•peter_d_sherman•9m ago•0 comments

Emoji Based Janet Packages and Codebases

https://hachyderm.io/@janet_catcus/117128090262354367
1•veqq•10m ago•0 comments

When Building Gets Cheap, Knowing What to Build Gets Expensive

https://twitter.com/adalagent/status/2090476725474131986
1•Aria06•10m ago•0 comments

Poisoned Postgres Connection Pools

https://planetscale.com/blog/postgres-poisoned-connection-pools
1•vzhou842•11m ago•0 comments

Excluded from everywhere: incompatible with every system I entered

https://msakkal.me/en/
1•MS8080•12m ago•0 comments

TrueForge – The open-source agent harness

https://github.com/truefoundry/trueforge
1•qiasl2•12m ago•0 comments

Subscriber Rot

https://birchtree.me/blog/subscriber-rot/
1•speckx•19m ago•0 comments

What Is Reasoning

https://lucumr.pocoo.org/2026/8/19/what-is-reasoning/
1•sebg•20m ago•0 comments

Ask HN: How do you review and validate LLM generated code?

1•darkLord19•22m ago•1 comments

Show HN: Kandelo – a POSIX-compatible multi-process WASM kernel for the browser

https://kandelo.dev/20260819-demo/
2•brandonpayton•22m ago•1 comments

NASA mission to save sinking space telescope fails

https://www.nbcnews.com/science/space/nasa-swift-space-telescope-boost-mission-fails-rcna593421
2•anigbrowl•23m ago•0 comments

Soup Raiders Goes Native: Porting the Demo from Unity

https://eliasfarhan.ch/gamedev/cpp/2026/08/20/srnative-02-porting-unity.html
1•kwakwa_cat•25m ago•0 comments

Slopbait

http://writingball.blogspot.com/2026/08/slopbait.html
1•speckx•25m ago•0 comments

New Spanish nanomaterial cools surfaces by up to 12.9C without electricity

https://www.euronews.com/next/2026/08/17/new-spanish-nanomaterial-cools-surfaces-by-up-to-129c-wi...
2•bookofjoe•25m 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).