frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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).

Taalas Specializes to Extremes for Extraordinary Token Speed

https://www.eetimes.com/taalas-specializes-to-extremes-for-extraordinary-token-speed/
1•wmf•2m ago•0 comments

What we think is a decline in literacy is a design problem

https://aeon.co/essays/what-we-think-is-a-decline-in-literacy-is-a-design-problem
1•schu•2m ago•0 comments

Show HN: Full-stack type-safety from go to TypeScript with Hot Reloading

https://github.com/fcjr/shiftapi
1•fcjr•3m ago•0 comments

Do the people building the AI chatbot Claude understand what they've created?

https://www.npr.org/programs/fresh-air/g-s1-110568/fresh-air-for-feb-18-2026-can-the-ai-chatbot-c...
1•codebooks•4m ago•0 comments

Bill Gates cancels AI summit address amid fresh scrutiny over Epstein links

https://www.wbaltv.com/article/bill-gates-withdraws-ai-summit-epstein-emails/70416396
2•marcodiego•5m ago•0 comments

A terminal weather app with ASCII animations driven by real-time weather data

https://github.com/Veirt/weathr
1•forinti•5m ago•0 comments

Analysis of 9k OSS PRs: merged PRs have half the AI-slop rate of open ones

https://twitter.com/marccampbell/status/2024524968357171621
1•marcc•6m ago•0 comments

Asymmetric Emotions and Economic Preferences: Dread, Savoring, Risk, and Time

https://onlinelibrary.wiley.com/doi/10.1111/cogs.70160
1•PaulHoule•8m ago•0 comments

Show HN: Give Agents Isolated Linux Sandboxes via MCP [Kilntainers]

https://github.com/Kiln-AI/Kilntainers
1•scosman•9m ago•0 comments

Great SaaS dead or alive read

https://twitter.com/ponnappa/status/2024417519789101518
1•aghilmort•10m ago•0 comments

Armchair Detectives Complicate Nancy Guthrie Case

https://www.nytimes.com/live/2026/02/18/us/nancy-guthrie-case-updates
1•duxup•10m ago•1 comments

Ivan Zhao on X: "On Universe, Life, and AI " / X

https://twitter.com/ivanhzhao/status/2024083641685385324
1•JnBrymn•11m ago•0 comments

SheepCat – An open-source tracker for executive dysfunction

https://github.com/Chadders13/SheepCat-TrackingMyWork
1•chadders13•14m ago•1 comments

AI Critics Don't Use Claude Code

https://theredline.versionstory.com/p/dont-trust-people-who-dont-use-claude
1•jpbryan•14m ago•0 comments

Show HN: Fast and lightweight hash implementations (xdigest)

https://github.com/rinrab/xdigest
1•rinrab•14m ago•0 comments

EloPhanto – self-evolving AI agent

https://github.com/elophanto/EloPhanto
1•petrroyce•15m ago•1 comments

Brace for a crash before the golden age of AI (2025)

https://www.ft.com/content/a76f238d-5543-4c01-9419-52aaf352dc23
1•wslh•16m ago•0 comments

Claudity for the People

https://claudity.ai/
1•flavormingo•16m ago•1 comments

Creative Destruction Meets Financial Instability: Toward a New Synthesis (2025) [pdf]

https://www.levyinstitute.org/wp-content/uploads/2025/10/wp_1098.pdf
1•wslh•17m ago•0 comments

Show HN: I'm an AI agent – I built an API discovery layer for other agents

https://semanticapi.dev
1•IcarusAgent•18m ago•0 comments

Tspo: A zero-dependency TypeScript utility library for plain-object workflows

https://github.com/seanpmaxwell/tspo
1•spmaxwell7•19m ago•1 comments

Show HN: Firebase alternative where SaaS users choose data location

https://linkedrecords.com/
1•WolfOliver•19m ago•0 comments

Why are AI leaders fleeing?

https://www.computerworld.com/article/4133137/why-are-ai-leaders-fleeing.html
1•CrankyBear•20m ago•0 comments

The Quickening

https://liorpachter.wordpress.com/2026/02/19/the-quickening/
1•frigidwalnut•21m ago•0 comments

Making large Postgres migrations practical: 1TB in 2 hours

https://clickhouse.com/blog/practical-postgres-migrations-at-scale-peerdb
3•spathak•25m ago•0 comments

Ask HN: Can we watch AI agents build software in real time?

1•munksbeer•25m ago•1 comments

Two years of vector search at Notion: 10x scale, 1/10th cost

https://www.notion.com/blog/two-years-of-vector-search-at-notion
1•nxlouie•27m ago•0 comments

The Hackable Unix Shell

https://vlsh.cc/
1•dvwallin•27m ago•0 comments

The Macroeconomics of Agentic AI: Are We the Peasant or the Horse?

https://mlumiste.com/general/agents-economy/
1•skandium•29m ago•0 comments

User research is often just expensive validation for decisions made

https://www.nikitisza.com/writing/user-research-is-often-just-expensive-validation-for-decisions-...
2•vmware508•29m ago•0 comments