frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Speculative Decoding, Visualized

https://www.adaptive-ml.com/post/speculative-decoding-visualized
1•krackers•6m ago•0 comments

Optimal Elevator Placement

https://jslandy.com/elevators/
1•efavdb•8m ago•0 comments

The "memory shortage" that no one saw coming

https://greyenlightenment.com/2026/07/28/the-memory-shortage-no-one-saw-coming/
1•paulpauper•10m ago•0 comments

OPM finalizes rules expanding its power over RIFs, employee appeals

https://www.govexec.com/workforce/2026/07/opm-finalizes-rules-expanding-its-power-over-rifs-emplo...
1•WaitWaitWha•12m ago•0 comments

Rare footage of humpback whale birth captured on drone video

https://www.cbsnews.com/news/humpback-whale-birth-drone-video/
1•WaitWaitWha•13m ago•0 comments

Send a file from this browser as a stream of QR codes

https://app.transfqr.com
1•mohyware•14m ago•0 comments

His Wedding Guests Were Arriving–Just as His $45B Fund Was Falling Apart

https://www.wsj.com/finance/leopold-aschenbrenner-situational-awareness-ai-fund-597633d3
1•oliver236•16m ago•0 comments

Salmon Hat

https://en.wikipedia.org/wiki/Salmon_hat
2•1659447091•24m ago•0 comments

AI Visibility Evidence Model: Five Factors, Graded by Evidence

https://www.richresults.ai/evidence.html
1•spetschinka•25m ago•0 comments

The year Claude users sued over limits is the year the limits mostly went up

https://okaneland.com/study/claude-code-limits/
2•ermantrout•25m ago•0 comments

Requirements for Interference-Tolerant Radio Altimeter Systems

https://www.federalregister.gov/documents/2026/01/07/2026-00051/requirements-for-interference-tol...
1•Jimmc414•26m ago•0 comments

Explorative Modeling – A new axis for pre-training

https://arxiv.org/abs/2607.27372
2•piesauce•26m ago•2 comments

Looking inside a 1970s PROM chip that stores data in microscopic fuses (2019)

https://www.righto.com/2019/07/looking-inside-1970s-prom-chip-that.html
1•Jimmc414•27m ago•0 comments

Uranium in cobalt-hydroxide exports from the Democratic Republic of the Congo

https://www.nature.com/articles/s41467-026-75910-z
1•Jimmc414•28m ago•0 comments

Freeze the model, train the harness: gains transfer across LLMs and benchmarks

https://www.henrypan.com/blog/2026-07-18-harness-training/
1•megadragon9•28m ago•0 comments

File transfer using animated QR codes

https://www.reddit.com/r/vibecoding/comments/1vawz1e/had_an_idea_for_air_gapped_file_transfer_abl...
2•jv22222•30m ago•1 comments

Proactive V Reactive; from a Startup Founder's Perspective

https://blog.nathanlangley.dev/posts/proactive-ai.html
1•ninjahawk1•32m ago•0 comments

LLM speculative decoding explained simply

https://jwlabs.vercel.app/post/speculative-decoding-first-principles
1•shreybirmiwal•33m ago•0 comments

Benchmark: 68x faster than AWS DMS for real-time CDC

https://www.artie.com/blogs/artie-vs-aws-dms
3•j-cheong•33m ago•0 comments

NoMachine ditches free edition and forums

https://www.reddit.com/r/NoMachine/comments/1vb6y3o/nomachine_ditches_free_edition_and_forums/
1•pacman128•33m ago•0 comments

How to measure the performance of a quantum computer

https://www.ibm.com/quantum/blog/hardware-metrics-2026
1•mrkO99•37m ago•0 comments

Show HN: SmokeVPN – All-in-One WireGuard VPN Hub – Switch Exits in Realtime

https://smokevpn.com
3•lobito25•44m ago•2 comments

Why Journalism Matters to Democracy (2025)

https://cjmd.com.uw.edu/why-journalism-matters-to-democracy/
2•1659447091•45m ago•0 comments

Texas bans THC cannabinoids except delta-9, except edibles and drinks

https://www.khou.com/article/news/local/texas/texas-thc-ban-2026-delta-8-delta-10-hemp-products-l...
4•burnt-resistor•45m ago•0 comments

A Safe Path to Open Weights

https://thinkingmachines.ai/blog/a-safe-path-to-open-weights/
2•stokedmartin•54m ago•0 comments

Readable ad-hoc commands agent skill

https://github.com/a-b/readable-ad-hoc-commands
1•a-b•56m ago•0 comments

How to Exist

https://www.raptitude.com/2026/07/how-to-exist/
5•walterbell•56m ago•0 comments

US Treasury undertakes historic intervention in yen market

https://www.ft.com/content/0f9b2fe7-bde4-4f5f-b49e-93ccb5da9ea8
4•petethomas•1h ago•1 comments

Random Thoughts of Lineage and Death

1•kooi•1h ago•0 comments

Global temperature changes from 12,000 weather stations (1850-2026)

https://github.com/reflex-dev/xy/discussions/419
7•palashawas•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).