frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How we use dopamine to get you to spend less time on your phone

https://getisland.app/blog/fire-with-fire/
1•Intragalactic•2m ago•0 comments

New CA laws let community colleges offer up to 12 bachelor's degrees

https://calmatters.org/education/higher-education/2026/09/new-california-laws-community-college-d...
1•lxm•5m ago•0 comments

Francis Fukuyama: Why I Changed My Mind About AI Risk

https://www.persuasion.community/p/why-i-changed-my-mind-about-ai-risk
1•mellosouls•6m ago•0 comments

Smart Ring Maker Oura, Backers Seek $2.2B in US IPO

https://www.bloomberg.com/news/articles/2026-09-21/smart-ring-maker-oura-backers-seek-2-2-billion...
3•elo2000•7m ago•0 comments

OpenAI president and MAGA Inc. donor to attend Trump-Xi state dinner

https://www.politico.com/news/2026/09/21/openai-maga-donor-trump-xi-dinner-01086456
1•Alien1Being•8m ago•0 comments

Put Tabs Away

https://chromewebstore.google.com/detail/leotabs-—-tab-manager-swi/heolckkdeandgagkiefggcneodni...
2•ringlochid•11m ago•0 comments

Ottawa to build sovereign AI ecosystem for Canadian defence operations

https://www.theglobeandmail.com/business/economy/article-ottawa-building-sovereign-ai-ecosystem-f...
1•Teever•12m ago•0 comments

Side-stepping the Secretary Problem, unwittingly

https://www.evalapply.org/posts/side-step-secretary-problem-hiring/index.html
3•pvdebbe•13m ago•0 comments

Turn ad-hoc subagents into durable, accountable AI teams

https://github.com/ringlochid/oh-my-subagents
3•ringlochid•15m ago•0 comments

Cohere and Aleph Alpha sign business combination agreement

https://cohere.com/blog/cohere-and-aleph-alpha-sign-agreement
2•diegocstn•17m ago•1 comments

The Inference Gap

https://twitter.com/Lon/status/2101034933284417614
1•Jimega36•22m ago•1 comments

Ju Ju Tsu

https://arialdo.codeberg.page/ju-ju-tsu/
1•hn92726819•23m ago•1 comments

Privacy Tools Experts Use

https://proton.me/blog/privacy-tools-experts-use
3•devonnull•24m ago•0 comments

Ticket-In Ticket-Out

https://en.wikipedia.org/wiki/Ticket-in,_ticket-out
2•suopspaces•25m ago•0 comments

Show HN: An honest comparison of the Agent Harness vs. six alternatives

https://time2magic.com/agent-harness
1•bishopz•30m ago•0 comments

Before and After Photos Show Data Centers Furiously Popping Up Across America

https://petapixel.com/2026/09/19/before-and-after-photos-show-data-centers-furiously-popping-up-a...
1•andsoitis•31m ago•0 comments

Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843)

https://aroberge.blogspot.com/2026/09/breaking-four-year-hiatus-to-talk-about.html
1•lumpa•31m ago•0 comments

Show HN: Primescript – Academic Markdown editor with vector search and LaTeX

https://primescript.com
1•mac-r•31m ago•0 comments

Show HN: A Mondrian-style puzzle block game

https://game.wdamao.com/mondrian-blocks/
1•wdamao•33m ago•1 comments

A Calendar of Smells

https://worldsensorium.com/a-calendar-of-smells/
1•dnetesn•33m ago•0 comments

A space war played in SQL

https://schemaverse.com/
1•thunderbong•34m ago•0 comments

Solitaire Alone Together

https://eieio.games/blog/solitaire-alone-together/
1•anitil•35m ago•2 comments

An Ocean Planet in Space

https://blue-continuum.com/an-ocean-planet-in-space
2•dnetesn•36m ago•0 comments

EZ4: A reflection-driven alternative to AWS CDK for serverless apps

https://github.com/sbalmt/ez4
2•sbalmt•40m ago•0 comments

Ask HN: How do you sell a small bootstrapped SaaS?

2•hpsilab•42m ago•0 comments

A 7B fact-checker beat 30B LLM reviewers and deleted no true claims

https://openteams.com/llm-review-reliability/
3•khuyentran1401•42m ago•0 comments

The World After Capital (2024)

https://worldaftercapital.org/
2•measurablefunc•43m ago•0 comments

How Your Internet Traffic Gets There: IXPs and Peering

https://community.ipinfo.io/t/how-your-internet-traffic-actually-gets-there-ixps-peering-and-why-...
2•shubhamjain•46m ago•0 comments

A Programming Mentality

https://www.natemeyvis.com/a-programming-mentality/
1•meetpateltech•48m ago•0 comments

Vibes vs. Evidence: What delivers AI code review quality

https://dsifry.github.io/harnesseval/
3•pjf•48m 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).