frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Rust Is the New C

https://www.namtao.com/rust-is-the-new-c/
1•hatamoto•5m ago•0 comments

Munich Laser Emits a Beam of Matter Waves (1999)

https://www.sciencedaily.com/releases/1999/03/990317060831.htm
1•peter_d_sherman•15m ago•1 comments

Anthropic CVP (Mythos) Defense Access Requirements Reduced to KYC

https://portal.anthropic.com/login?returnTo=%2Fprograms%2Fcvp#_
1•jcomp•15m ago•1 comments

New study narrows the timeline for the emergence of life on Earth

https://gizmodo.com/early-earth-was-a-molten-asteroid-blasted-hellscape-scientists-now-know-when-...
1•gmays•17m ago•0 comments

How Jensen Huang Built the Backdoor Route That Keeps Beijing in the AI Race

https://www.wsj.com/tech/jensen-huang-backdoor-ai-data-centers-a5e4499d
3•ViktorRay•22m ago•1 comments

Kiri – The Modern Container Runtime

https://runkiri.com/
7•nikolay•24m ago•1 comments

Show HN: Gawain – Require type hints on all Python variables

https://github.com/matheuzgomes/gawain
9•MarinhoD•25m ago•0 comments

Agent Substrate: The Core System

https://github.com/agent-substrate/substrate
3•thunderbong•27m ago•0 comments

Anthropic, can you please make up your mind with your models?

4•xlayn•27m ago•0 comments

Europe's Digital Wallets May Be More Traceable Than Intended

https://spectrum.ieee.org/europe-digital-id-security-cryptography
1•geox•28m ago•0 comments

Songs That Explain America

https://www.theatlantic.com/culture/2026/09/50-songs-explain-america-playlist/687598/
1•gmays•28m ago•0 comments

Training Your Replacement: Worker Incentives and the Pace of Automation

https://www.nber.org/papers/w35950
2•rohanm93•34m ago•0 comments

Discovery Feed for Agents

https://twitter.com/cadenbuild/status/2121372002313503003
1•cadenli2025•35m ago•0 comments

Smart AI Keyboard: Translate

https://play.google.com/store/apps/details?id=smart.ai.keyboard&hl=en_US
1•aikeyboard•36m ago•0 comments

FAA Outage: Why Duffy Is Spelled with Two Ms

https://www.flyingpenguin.com/faa-outage-why-duffy-is-spelled-with-two-ms/
1•zzzeek•43m ago•1 comments

Heading over Humanity

https://www.writingruxandrabio.com/p/handing-over-humanity
1•hwacth•48m ago•0 comments

Ranking 162 anime by how much of their dialogue is common words

https://etoku.app/anime/easiest
2•willmorrison•51m ago•3 comments

Show HN: Turbo-Browser-MCP – Batch forms, DOM deltas and submit guards for MCP

https://github.com/Tthanh2k6/turbo-browser-mcp
5•tthanh2k6•55m ago•0 comments

SRT Link to Red5 Opens Path to Real-Time Streaming Everywhere

https://www.red5.net/blog/srt-realtime-streaming-everywhere/
2•mondainx•56m ago•0 comments

Show HN: A blog on how computers work from scratch (1)

https://dinank.dev/posts/between-wall-and-first-fetch.html
2•daynum•57m ago•2 comments

A Plan of the Cities of London and Westminster, and Borough of Southwark

https://en.wikipedia.org/wiki/John_Rocque%27s_maps_of_London
1•arbuge•57m ago•0 comments

Musings on long-context fine-tuning

https://hardikmeisheri.github.io/blog/musings-long-context-finetuning.html
1•eigenBasis•59m ago•0 comments

I hope you die: Inside Jensen Huang's reported tirades at Nvidia board meetings

https://www.indiatoday.in/world/story/jensen-huang-nvidia-workplace-allegations-executive-outburs...
3•gsky•1h ago•1 comments

Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training

https://arxiv.org/abs/2609.14306
2•gmays•1h ago•0 comments

Show HN: KrocPDF – A Local-First, Alternative to iLovePDF

https://github.com/KrocPDF/KrocPDF
2•abhijeetcreates•1h ago•0 comments

Anthropic bought a one-person, AI-powered biotech

https://www.nature.com/articles/d41586-026-03640-9
1•nate•1h ago•0 comments

A/B test whether pre-gathered context helps coding agents complete tasks

https://github.com/unblocked/context-engine-simulator
1•fagnerbrack•1h ago•0 comments

India applying inhumane tech illegally on Canadian civilians on Canadian soil

2•whiteangel1984•1h ago•0 comments

SuperMimic: Compute is no longer the bottleneck to robotics

https://supermimic.github.io/
2•maccaw•1h ago•0 comments

What Math Means to Me

https://arxiv.org/abs/2609.32028
1•fanyangxyz33•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).