frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

An AI agent beat Universal Paperclips in 1:21:23 (WR was 1:33:42)

https://universal-paperclips-ai.netlify.app/
1•arthur-G•24s ago•0 comments

Stop being the code review bottleneck

https://newsletter.posthog.com/p/code-review-tips
1•fagnerbrack•1m ago•0 comments

US District Court Decision in AI's Favor Worries Open-Source Developers

https://devops.com/us-district-court-decision-in-ais-favor-worries-open-source-developers/
1•CrankyBear•7m ago•0 comments

Show HN: Judge HN Threads with Jev

https://hnjudge.vercel.app
1•rishi_•8m ago•0 comments

How Blacksmith runs more than 10M CI jobs a day

https://www.blacksmith.sh/blog/how-blacksmith-runs-10-million-jobs-per-day
4•aayushshah15•8m ago•0 comments

Explaining the Postgres Meme

https://avestura.dev/blog/explaining-the-postgres-meme
1•gregsadetsky•9m ago•0 comments

Small AI models let drones autonomously identify and attack battlefield targets

https://arstechnica.com/ai/2026/09/nato-backed-startup-adapts-ai-for-autonomous-drone-recon-and-a...
1•rbanffy•9m ago•0 comments

Googlebook OS hands-on: It's Android, stupid

https://9to5google.com/2026/09/21/googlebook-os-hands-on/
1•xnx•9m ago•0 comments

Using Jev as an LLM Linter for OMP (Pi) Agent

https://github.com/goulinkh/omp-semantic-policy
1•goulinkh•9m ago•0 comments

The current balance of power in open models

https://www.interconnects.ai/p/the-current-balance-of-power-in-open
1•pretext•11m ago•0 comments

Goodnotes releases new AI notetaker

https://goodmeet.com/
3•ominous_debris•11m ago•0 comments

Grok 4.7

https://x.ai/news/grok-4-7
9•meetpateltech•12m ago•1 comments

Automatically Retrofitting JIT Compilers

https://www.infoq.com/presentations/yk-meta-tracing-jit-compiler/
1•cpeterso•13m ago•0 comments

Show HN: Replay an AI Coding Session and Inspect Its Requests

https://ishamf.dev/p/agent-harness-replay/
1•ifz•16m ago•0 comments

A restored PDP-11/83 serving this page on 211BSD Unix

http://pdp1173.com/
1•davepl•17m ago•1 comments

Ask HN: What is the most interesting project you are working on?

3•skwasimin•19m ago•1 comments

Show HN: All of FreeCAD 1.1.3, every workbench and FEM, running in the browser

https://freecad.virtastic.app/
2•dumpstertechops•19m ago•0 comments

46% of Open-Source AI Agents dropped from rankings in 28 weeks

https://www.theagenticleaderboard.com/
1•theagenticleade•19m ago•1 comments

Goolsbee: The Fed Can't Keep Waiting Out Oil Shocks

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-09-21-2026/card/goolsbee-th...
3•kaycebasques•22m ago•1 comments

Design Drought

https://lmnt.me/blog/design-drought.html
1•surprisetalk•22m ago•0 comments

Show HN: Timewaster – They waste your time. Return the favor

https://timewasterapp.com/
1•JackWritesCode•23m ago•0 comments

IvoryOS – Orchestrate an Autonomous Lab

https://ivoryos.ai/
1•eustoria•23m ago•0 comments

Show HN: 7 Coder Words – A puzzle game for computer science nerds

https://kenamick.itch.io/7-coder-words
1•p2detar•25m ago•0 comments

I shipped 2,000 pull requests through production last month [video]

https://twitter.com/poteto/status/2102050467505430555
1•nomilk•25m ago•0 comments

You Can Detect If Code Is Being Run Inside a Terminal

https://nelson.cloud/you-can-detect-if-code-is-being-run-inside-a-terminal/
1•eustoria•25m ago•0 comments

We Have So Many Questions

https://lab.cloud/news/we-have-so-many-questions/
2•aliasaria•25m ago•0 comments

Pinned-Value Goods

https://arun.is/blog/pinned-value-goods/
2•ddrmaxgt37•26m ago•0 comments

Using TypeSafe AI in Bug Bounty

https://www.lampysecurity.com/post/using-typesafe-ai-in-bug-bounty
1•lampysecurity•28m ago•0 comments

Tobi: Persistent terminal sessions across your devices

https://tangled.org/ptr.pet/tobi
2•nerdypepper•29m ago•0 comments

Trump Says His Contested Arch Would House Drones and Snipers

https://www.nytimes.com/2026/09/20/us/politics/trump-dc-arch-snipers-drones-military-complex.html
2•whack•29m ago•1 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).