frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Dawn of the Super Agent

https://www.agno.com/blog/dawn-of-the-super-agent
1•ashpreet-bedi•3m ago•0 comments

Tor Project Issues Rapid-Response DoS-Defense Fix Amid Sustained DDoS Attack

https://forum.torproject.org/t/security-release-0-4-9-17/22454
2•aillia•4m ago•0 comments

Making Websites in 2026

https://blog.jim-nielsen.com/2026/making-websites-in-2026/
1•Curiositry•5m ago•0 comments

Perplexity partners with Nvidia to launch Portable Computer

https://venturebeat.com/infrastructure/perplexity-partners-with-nvidia-to-launch-portable-compute...
1•gmays•6m ago•1 comments

CrowdGPT – AI Owned by Everyone

https://www.crowdgpt.net/#home
2•Retro_Dev•12m ago•0 comments

Itzma, an embedded vector database backed by object storage

https://github.com/sergiommarcial/itzma
2•Kh40sz3r0•17m ago•0 comments

Microsoft 365 outage leads to chlorine gas poisoning of 15 hotel guests

https://www.tomshardware.com/tech-industry/data-centers/microsoft-365-outage-leads-to-chlorine-ga...
6•ivewonyoung•22m ago•0 comments

Skydio's asymmetrical F10 Lightrunner solves a problem with fixed-wing drones

https://spectrum.ieee.org/skydio-f10-lightrunner-asymmetrical-drone
2•Gaishan•23m ago•0 comments

The first ping from Tonga (1997)

https://colo.to/firstping.html
2•Eric_Gullichsen•25m ago•0 comments

Show HN: I rewrote Doom2D Forever in Rust, playable in browser

https://doom2d.oddbench.co/
3•256cats•27m ago•0 comments

Advice for new (and old) devs with Dan Moore [video]

https://www.youtube.com/watch?v=cjTHn_lABlI
2•mooreds•28m ago•0 comments

What's Next for Nvidia?

https://steveblank.com/2026/11/15/whats-next-for-nvidia/
2•zdw•30m ago•0 comments

The efficient frontier of LLM inference

https://www.baseten.co/blog/the-efficient-frontier-of-llm-inference/#quantization
2•gmays•30m ago•0 comments

Mini.nvim Is Now on Tangled

https://tangled.org/nvim-mini.org/mini.nvim
3•nerdypepper•30m ago•0 comments

The Lancet Commission on 21st century global threats to health

https://www.thelancet.com/commissions-do/global-threats-to-health
2•fosco•31m ago•0 comments

Parcel: A desktop mail client for Linux, built with Zig

https://tangled.org/rockorager.dev/parcel
2•nerdypepper•31m ago•0 comments

How do groups work on Linux? (2017)

https://jvns.ca/blog/2017/11/20/groups/
2•zenincognito•33m ago•0 comments

The single router in southern Arkansas that ground air travel to a halt

https://www.msn.com/en-us/news/other/the-single-router-in-southern-arkansas-that-ground-air-trave...
3•CharlesW•35m ago•0 comments

Estonia to close all border crossings with Russia after attack on drone maker

https://www.theguardian.com/world/2026/nov/15/estonia-to-close-all-border-crossings-with-russia-a...
3•howard941•37m ago•0 comments

Show HN: Wipeout-style mini racer written in C++ compiled to WASM for browser

https://gamedevpl.github.io/silnik3d-od-zera/demko/
3•fullstackwife•48m ago•1 comments

Why your Wi-Fi slows down when more devices connect

https://www.engadget.com/2313934/wifi-slows-down-when-devices-connect/
3•zenoware•49m ago•0 comments

How to Get Mentorship

https://mirawelner.com/posts/cube.html
1•mirawelner•51m ago•0 comments

Reddit's traffic is down 13%, partly thanks to AI Overviews

https://www.businessinsider.com/reddit-traffic-down-13-percent-similarweb-google-ai-overviews-202...
11•madihaa•52m ago•1 comments

Rebuild it from the picture Dynamic Programming

https://nokku.payanai.com/interview-prep/dsa/dynamic-programming
2•payanai•54m ago•0 comments

A step toward defining the Standard Model on a lattice

https://openai.com/index/step-toward-defining-the-standard-model
4•acossta•57m ago•0 comments

GLM Models Cut AI Coding Costs 90% for 2k Engineers

https://finance.biggo.com/news/71888475bad974d6
6•iwayato•58m ago•0 comments

Jensen Huang might return to Nvidia as CEO

https://www.reuters.com/world/china/jensen-huang-discusses-comeback-nvidia-ceo-with-allies-ft-rep...
81•YakubYilmaz•1h ago•62 comments

When Failure Becomes Expensive: How Systems Reorder What Is Worth Protecting

https://notesonordering.substack.com/
3•CornorReed•1h ago•0 comments

Extinct 'vampire camel' once stalked North American plains – Science – AAAS

https://www.science.org/content/article/extinct-vampire-camel-once-stalked-north-american-plains?...
5•rbanffy•1h ago•0 comments

Building a Company Without Losing Your Marriage

https://founderreports.com/interview/what-a-startup-does-to-a-founders-marriage/
3•peterchane•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).