frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Christophe Laudamiel: Planted Memory, Cultivated Ethics, and Perfumery

https://worldsensorium.com/christophe-laudamiel-planted-memory-cultivated-ethics-and-more-blossom...
1•dnetesn•38s ago•0 comments

AI models are not hacking "autonomously"

https://blog.keyvan.net/p/ai-models-are-not-hacking-autonomously
1•k1m•53s ago•0 comments

If a Lion Could Speak

https://blue-continuum.com/if-a-lion-could-speak
1•dnetesn•2m ago•0 comments

Sunshine coast airport floor tiling pattern inspired hardest problem of IMO 2025

https://petermc.net/blog/2025/07/21/imo-2025/
1•vismit2000•3m ago•0 comments

How to classify, route, and score with Jev and AI SDK

https://vercel.com/kb/guide/typesafe-jev-and-ai-sdk
1•flashbrew•5m ago•0 comments

Show HN: Gravitype – a terminal typing game where words fall from the sky

https://github.com/kanakOS01/gravitype
1•kanakOS01•7m ago•0 comments

Dusklight 2.0.0

https://github.com/TwilitRealm/dusklight/releases/tag/v2.0.0
1•skibz•7m ago•0 comments

Google Joins OpenAI, Anthropic, Meta in Disclosing AI Hacks

https://www.bloomberg.com/news/articles/2026-09-18/google-s-gemini-ai-system-hacked-three-systems...
2•dlx•10m ago•1 comments

CodeIO: Sprinkle determinism into your AI for better PRs

https://nloum.github.io/blog/codeio/
2•imagent•13m ago•0 comments

Build Distributed Systems from Scratch

https://builddistributedsystem.com
2•dockerd•14m ago•0 comments

When the Debugger Lies

https://danielmangum.com/posts/when-the-debugger-lies/
1•hasheddan•15m ago•0 comments

Chinese university builds "synthetic population" for shaping foreign propaganda

https://www.aspistrategist.org.au/china-is-building-an-ai-system-for-tailoring-its-foreign-propag...
3•ilamont•15m ago•0 comments

Claude Code Supports AGENTS.md

https://github.com/anthropics/claude-code/tree/main/mods/agents-md
2•tosh•23m ago•0 comments

CSS-Tricks could be a co-op

https://ericwbailey.website/published/css-tricks-could-be-a-co-op/
1•birdculture•23m ago•0 comments

Kubernetes Changed Block Tracking API – Beta Differences

https://kubernetes.io/blog/2026/09/14/csi-changed-block-tracking-beta/
1•hn9zmdcaou•28m ago•0 comments

Unexpected Facts about Turkeys

https://www.vox.com/2014/11/27/7299377/turkey-facts-fun
1•thunderbong•31m ago•0 comments

Anyone Used Cloudflare AI Agent Diagnostics for SaaS Purchases?

https://blog.cloudflare.com/aeo/
2•tkrenn06•31m ago•1 comments

EconDash – Explore 753 economic indicators across 298 countries

https://econdash.org
1•latentframe•32m ago•0 comments

Walking Men Worldwide

https://walking-men.com/
2•bookofjoe•33m ago•0 comments

Taking notes while reading: the John Locke commonplace method

https://fs.blog/john-locke-common-place-book/
1•mimo84•35m ago•0 comments

Infillion Acquires Foursquare

https://infillion.com/blog/infillion-to-acquire-foursquare-closing-the-loop-between-advertising-a...
1•doppp•41m ago•0 comments

Options Trading – Formula better than the Black-Scholes model

https://zenodo.org/records/22772029
2•zipotm•42m ago•0 comments

Launched a JEV directory with 100 uses cases

https://madewithjev.com
1•kraayen_jon•42m ago•0 comments

Show HN: NotchBuddy – Your MacBook's Notch Can Do All This

https://notchbuddy.com
1•mohitvaswani•43m ago•0 comments

Wonder how smart Jev is? Ask him directly

https://ouijev.com/
1•Rom2•44m ago•0 comments

OwnNotes: Private AI Notebook

https://apps.apple.com/us/app/ownnotes-private-ai-note/id6805594736
1•rajeevkrasr•45m ago•0 comments

Nonprofit that tracks meteors taken down by "critical blow" from a cyberattack

https://arstechnica.com/security/2026/09/nonprofit-that-tracks-meteors-taken-down-by-critical-blo...
1•joozio•52m ago•0 comments

RoboHarm: Do Frontier Robot Policies Refuse Unsafe Instructions?

https://robocurve.org/roboharm/
1•jonbaer•53m ago•0 comments

AnyFilter: Hide anything you don't want to see on any site, powered by Jev

https://github.com/anyfilter/anyfilter
1•lime66•54m ago•0 comments

TimeCodeSecurity – Deterministic AST SAST and Auto-Remediation for Python

2•AyushGaur•54m 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).