frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

An off switch for dual use knowledge in AI models

https://www.anthropic.com/research/off-switch-dual-use
1•DeveloperErrata•32s ago•0 comments

The Unlikely Journalist Who Looked into the Heart of War

https://www.newyorker.com/books/page-turner/the-unlikely-journalist-who-looked-into-the-heart-of-war
1•petethomas•51s ago•0 comments

What Scientists Learned by Eavesdropping on Thousands of People

https://www.newyorker.com/culture/annals-of-inquiry/what-scientists-learned-by-eavesdropping-on-t...
1•petethomas•2m ago•0 comments

AI software that generates 'rage bait' developed by Germany's far-right AfD

https://www.irishtimes.com/world/europe/2026/07/08/ai-software-that-generates-rage-bait-developed...
1•giuliomagnifico•5m ago•0 comments

Companies must address self-driving car interference with emergency vehicles

https://www.reuters.com/world/us/companies-must-address-self-driving-car-interference-with-emerge...
1•1vuio0pswjnm7•6m ago•0 comments

Pg_re2: Postgres extension for fast, RE2-powered regular expressions in Postgres

https://clickhouse.com/blog/introducing-pg_re2-regex-in-postgres
1•saisrirampur•6m ago•0 comments

Spider venom kills varroa mites without harming honeybees

https://connectsci.au/news/news-parent/9703/Spider-venom-kills-varroa-mites-without-harming
6•Jedd•8m ago•0 comments

Microsoft's gaming strategy has misfired badly

https://www.economist.com/business/2026/07/08/microsofts-gaming-strategy-has-misfired-badly
2•petethomas•13m ago•0 comments

Reload Rust code without app restarts. For faster feedback cycles

https://github.com/rksm/hot-lib-reloader-rs
2•vlovich123•14m ago•0 comments

Show HN: Embeddable visual HTML/CSS page editor

https://neikiri.dev/page-editor/
1•neikiri•14m ago•0 comments

OpenCode Bug: "I did not say that you did"

https://www.williamangel.net/blog/2026/07/08/OpenCode-Bug-I-did-not-say-that-you-did.html
2•datadrivenangel•19m ago•0 comments

Compendium – Shared workspace for teams and AI agents

https://www.cerenovus.ai/
1•Azimuth05•31m ago•1 comments

The AI Policy That Never Shipped

https://mendelevium.github.io/the-policy-never-shipped/
1•bobbybidon•32m ago•0 comments

Global Cancer Observatory – interactive visualization and data explore

1•andsoitis•35m ago•1 comments

EU's border check needs complete 'overhaul', says Greek airports chief

https://www.ft.com/content/83ae0ca8-ccce-4253-abfb-4c204f24bbbd
1•JumpCrisscross•36m ago•0 comments

FarRail Tours

https://www.farrail.com/
1•Svip•37m ago•0 comments

I am Scott Hansen, I make music as Tycho and visual work as ISO50 (2013)

1•andsoitis•43m ago•0 comments

China's Comicup convention showcases 'nüwu,' a niche genre avoiding romance

https://www.sixthtone.com/news/1018736/NoWoo:AtChina’sTopAnimeConvention,LoveTakesaBackSeat
1•whiteblossom•43m ago•0 comments

GPT‑Live

https://openai.com/index/introducing-gpt-live/#
1•adithyaharish•50m ago•1 comments

Modernizing Kernel Cryptography [video]

https://www.youtube.com/watch?v=TBUK5DKeXRg
1•zdkaster•1h ago•1 comments

Meta Tapped a Pentagon Supplier to Prototype Face Recognition for Its Glasses

https://www.wired.com/story/meta-rank-one-computing-face-recognition-smart-glasses/
2•1vuio0pswjnm7•1h ago•0 comments

Feds demand autonomous vehicle companies stop interfering with first responders

https://techcrunch.com/2026/07/08/feds-demand-autonomous-vehicle-companies-stop-interfering-with-...
2•rilan•1h ago•0 comments

Neuromorphic Silicon Neuron Controller for Deep Brain Stimulation in Parkinsons

https://arxiv.org/abs/2607.05453
1•Jimmc414•1h ago•0 comments

I fact-checked 15 stats from a 1.2M-subscriber creator against primary sources

https://hemantpatil.substack.com/p/i-fact-checked-15-stats-from-a-12m
1•HPatil7•1h ago•2 comments

How to Kill the Bloat in Claude Code's System Prompt

https://www.aihero.dev/how-to-kill-the-bloat-in-claude-codes-system-prompt
2•Garbage•1h ago•0 comments

How to come up with a passion project

https://greatlittle.software/blog/how-to-come-up-with-a-passion-project/
2•Garbage•1h ago•0 comments

Invisible Companies: Why Overlooked Businesses Win

https://colossus.com/article/invisible-companies/
1•Garbage•1h ago•0 comments

Reproducing an Indirect Prompt Injection Against a RAG Pipeline

https://koreshield.ai/blog/reproducing-indirect-prompt-injection-rag
1•uncleteslim•1h ago•0 comments

Benchmarking quantum advantage: Quantum Advantage Tracker

https://quantum-advantage-tracker.github.io/
1•Alien1Being•1h ago•1 comments

'Humanizer' tool can erase signs of AI-written text

https://www.nature.com/articles/d41586-026-02105-3
2•gnabgib•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).