frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Artificial Debt

https://stitcher.io/blog/artificial-debt
1•brentroose•2m ago•0 comments

What's Eating the Office?

https://newsletter.drorpoleg.com/p/whats-eating-the-office
1•rwmj•6m ago•0 comments

Show HN: Job Board for Hypermedia Jobs

https://hypermediajobs.com/
1•alexandermorgan•14m ago•0 comments

Sham scientific societies are misleading researchers into signing up for scams

https://www.nature.com/articles/d41586-026-02980-w
2•OgsyedIE•15m ago•1 comments

Developers Delete Unit Test Lines with AI Shift

https://x.com/i/trending/2106211685782483337
2•brunaxLorax•16m ago•0 comments

Customize Claude Code with Mods in TypeScript

https://claude.com/blog/claude-code-mods
1•rbinv•18m ago•0 comments

Where the Problem Is Gone, but the Process Is Thriving

https://medium.com/@gurvinder372/article-27-where-the-problem-is-gone-but-the-process-is-thriving...
1•gps372•19m ago•0 comments

Turochamp (1948 chess program)

https://en.wikipedia.org/wiki/Turochamp
1•networked•20m ago•0 comments

The Olive Tree

https://worldsensorium.com/the-olive-tree/
1•dnetesn•21m ago•0 comments

The Space Between Two Fingers

https://blue-continuum.com/the-space-between-two-fingers
1•dnetesn•23m ago•0 comments

The Download: a biological de-aging contest and why LLMs don't reason

https://www.technologyreview.com/2026/10/02/1145666/the-download-biological-de-aging-ai-reasoning/
1•joozio•26m ago•0 comments

Patient-zero drill put health facilities to the test–40% of them failed

https://arstechnica.com/health/2026/10/patient-zero-drill-put-health-facilities-to-the-test-40-of...
1•brador•30m ago•0 comments

Flatpak from the CLI Sucks

https://kowalski7cc.xyz/blog/flatpak-from-the-cli-sucks/
1•kowalski7cc•31m ago•1 comments

Show HN: Tiny model for fast typed decisions on CPU (Gutsy)

https://github.com/kouhxp/gutsy
2•mrkn1•32m ago•0 comments

Describe it. Humans build it

https://brandforge.gg/
1•mxstermind•35m ago•0 comments

Class Action Alleges That Google Gemini Was Reading User Emails Without Consent

https://openclassactions.com/lawsuits/google-gemini-gmail-privacy-class-action.php
1•openclassaction•38m ago•0 comments

Automated UK Wills

https://lexifina.com/blog/fully-automated-wills
1•alansaber•43m ago•0 comments

Show HN: Germany's new sovereign AI model Kolibri

https://tej.as/blog/aleph-alpha-kolibri
5•tejaskumar__•44m ago•0 comments

Look at all the things he's not doing

https://andycroll.com/ruby/look-at-all-the-things-he-is-not-doing/
1•thunderbong•52m ago•0 comments

Futuresearch Evals

https://evals.futuresearch.ai
1•ronfriedhaber•53m ago•0 comments

Half of UK wants to rejoin EU and backing it could drive up Labour vote

https://www.theguardian.com/world/2026/oct/03/half-want-to-rejoin-eu-and-backing-it-could-drive-u...
7•vrganj•55m ago•0 comments

Yves Meyer's wavelet transforms – The Abel Prize 2017 [video]

https://www.youtube.com/watch?v=5Fi6TdH9poU
2•joebig•57m ago•0 comments

Terminal Velocity for Claude Code. Session Orchestrator. Live Action

https://www.youtube.com/watch?v=9tfGn3isfZU
1•quazarzero•58m ago•0 comments

A Design Space Exploration of Async/Await

https://mastodon.social/@tonofcrates/117241380083291749
3•rapnie•1h ago•1 comments

Parsing Latin poetry using constraint satisfaction

https://logical.ai/arma/
1•jruohonen•1h ago•0 comments

Leashterm – a new programming language for agents

https://github.com/jessedorrestijn2-bit/leashterm
1•Jessedor•1h ago•1 comments

Factory Planner

https://factoryplanner.net/
2•mcpcpc•1h ago•1 comments

Defensibility in AI Data: Lessons from Ads

https://twitter.com/gokulr/status/2105838034646077890
1•porridgeraisin•1h ago•0 comments

We Investigated Starlink. The Corruption We Found Will Shock You

https://www.youtube.com/watch?v=LQYnlg4pO9o
2•tukunjil•1h ago•2 comments

Show HN: Beautiful form back end for AI agents – Nisuform

https://nisuform.com/
1•haneboxx•1h 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).