frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Five Kinds of Organizational Debt

https://www.constellaryhq.com/articles/five-kinds-of-organizational-debt
1•fagnerbrack•1m ago•0 comments

Japan-Inspired Tetris Game

https://daycarp.com/misc/linestokyoto/
1•coffeethursday•2m ago•0 comments

Mirage

https://akella.github.io/codevember-2026/15/
1•memalign•2m ago•0 comments

What Would Count as Superintelligence?

https://thefriendlyghost.nl/what-would-count-as-superintelligence
1•cvanelteren•7m ago•0 comments

How market fit is different for healthcare

https://davidngo1562.substack.com/p/its-not-about-the-money-until-it
1•illidan1000•7m ago•0 comments

On the probability of robots becoming more creative than humans

https://www.thetedkarchive.com/library/ted-kaczynski-on-the-probability-of-robots-becoming-more-c...
1•maplet•9m ago•1 comments

X's silent update yesterday broke third-party scraper pipelines

https://twitterapi.io/blog/x-searchtimeline-nov-2026-breaking-change-user-legacy-removed
2•jt_park•11m ago•0 comments

Ask HN: Are you prepared to rent intelligence from AI providers?

1•piratesAndSons•14m ago•1 comments

MaldocTrace – emulating malicious Office/OneNote docs to see what they'd run

https://github.com/debugactiveprocess/MaldocTrace
1•ironbits•17m ago•0 comments

The oddball who founded UPS and changed the world

https://www.economist.com/culture/2026/11/19/the-oddball-who-founded-ups-and-changed-the-world
1•andsoitis•19m ago•0 comments

California Research Measure Is a Windfall for a Billionaire's Pet Project

https://www.nytimes.com/2026/11/18/science/california-prop-38-gary-michelson.html
1•lxm•21m ago•0 comments

Ask HN: Printing documents in the age of AI cyberattacks

2•andsoitis•21m ago•1 comments

Show HN: GitHub Plays Linux

https://github.com/seg6
2•seg6•25m ago•0 comments

Informal Verification

https://www.nikolasgoebel.com/2026/11/22/informal-verification.html
2•ComNik•28m ago•0 comments

A teen gamer and his mother helped rescue a missing girl

https://www.bbc.com/news/articles/cmq8lyv8lkjwo
2•1659447091•30m ago•0 comments

Two Hands in a Local Box – SQLite state gating and negative provenance for LLMs

https://github.com/HenryOscarArthurMcDonald/two-hands-local-box
2•HenryMcDonald•30m ago•0 comments

Can AI Make Its Own Manufacturing Decisions?

https://semiengineering.com/can-ai-make-its-own-manufacturing-decisions/
2•gmays•33m ago•0 comments

Current Efforts Aren't Enough to Slow the AI Cyber Virus

https://www.bridgewater.com/research-and-insights/current-efforts-arent-enough-to-slow-the-ai-cyb...
2•DenisM•34m ago•1 comments

Show HN: System 1.5 Model – Inkling-2-Mini Decision

https://huggingface.co/eltokh7/inkling-2-mini-decision
3•eltokh7•35m ago•0 comments

Learning the Language of Machine Learning

https://news.mit.edu/2026/learning-language-of-machine-learning-jacob-andreas-1117
2•colinprince•36m ago•0 comments

Hardening NixOS After I Got Hacked

https://lantian.pub/en/article/modify-computer/hardening-nixos-after-i-got-hacked.lantian/
3•Shank•38m ago•0 comments

Upgrade my old MacBook turned home server

https://andreagao.com/posts/upgrade-macbook-turned-home-server/
3•freediver•42m ago•0 comments

Fast and Incremental iPhone Backups for Windows

https://mahdis24.tech/iphone-backup-sync/
2•mahdi_s24•44m ago•0 comments

Show HN: Hikari.ImGui, a pure C# re-implementation of Dear ImGui

https://github.com/LeastActionTech/Hikari.ImGui
2•charm137•45m ago•0 comments

One Month, 130 New Listings On donatemonero.org

https://monerocoalition.org/one-month-130-new-listings-on-donatemonero-org/
3•Cider9986•47m ago•0 comments

The Alpöge–Claude proof of the RH explained for the Riemann zeta function [pdf]

https://www.math.uwaterloo.ca/~mrubinst/alpoge_claude_grh/zeta-paper.pdf
2•literallyanythi•47m ago•2 comments

Show HN: A modern take on the Go language

https://github.com/telgatech/gpp
2•u89012•53m ago•0 comments

First Recorded Death "Involving a Rectal Explosion During Self-Gratification"

https://www.vice.com/en/article/man-dies-from-rectal-injuries-after-silly-experiment-with-compres...
3•spankibalt•55m ago•2 comments

Together.ai: Prompt Leakage for Requests

https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026
3•Fe2O3•55m ago•0 comments

Since last year, we asked: "What if AI solved the Riemann Hypothesis?"

https://www.youtube.com/watch?v=zqzk43bSdDI
7•droidjj•56m 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).