frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

OpenSSH adds support for composite ML-DSA 87 / ECDSA p384

https://github.com/openssh/openssh-portable/commit/fc6f265302adcbf88c5b4273e9cc9f4e5f81ab94
1•weeha•2m ago•0 comments

Migrating My Home Assistant Instance from HAOS to NixOS (On Proxmox)

https://assil.me/2026/12/05/migrate-home-assistant-haos-to-nixos.html
1•Cyph0n•2m ago•0 comments

Testing for mathematical taste with a ladder of cheap policies

https://thebatmanofbutler.substack.com/p/testing-for-mathematical-taste-with
1•theahura•6m ago•0 comments

A Statement on Replacing Ed25519, and on Quantum-Secure Polyproto

https://polyproto.org/blog/2026/12/04/pqc-situation/
1•matanyall•6m ago•0 comments

Anthropic Conquered Capitol Hill

https://ieapolicy.org/
1•devy•10m ago•0 comments

AGI Ruin: A List of Lethalities

https://www.lesswrong.com/posts/uMQ3cqWDPHhjtiesc/agi-ruin-a-list-of-lethalities
1•Alien1Being•11m ago•0 comments

Show HN: Image to Excel – Layout-aware table photos and scanned PDFs to .xlsx

https://imagetoexcel.io/
1•airapcreator•13m ago•0 comments

When stocks, houses and crypto fall, where does all that money go?

https://www.cbc.ca/1.6486826
1•thunderbong•15m ago•0 comments

Open-Source Developer Stands Up Against Synaptics Legal Threats over DisplayLink

https://www.phoronix.com/news/Vino-Driver-Redacted-Back
1•snvzz•16m ago•0 comments

BQP Lives Another Day

https://scottaaronson.blog/?p=10454
1•Alien1Being•16m ago•0 comments

Intelligence as a Resource

https://arxiv.org/abs/2612.04545
1•Anon84•18m ago•0 comments

AI Software Factories Were a Mistake

https://tej.as/blog/ai-software-factories-were-a-mistake
1•chriscbr•19m ago•0 comments

Show HN: A2a-gateway – Rust A2A v1.0 and MCP 2.0 gateway (973 RPS, 13.5 MB RAM)

https://github.com/csa7mdm/a2a-gateway
1•csa7mdm•22m ago•0 comments

The Mystery of the Continuously Functioning Battery from 1840 (2015)

https://www.smithsonianmag.com/smart-news/mystery-continuously-functioning-battery-1840-180954028/
1•saikatsg•25m ago•0 comments

Polish bare-knuckle fighter dies after bout

https://www.cnn.com/2026/12/05/uk/bare-knuckle-fighter-magdon-dies-intl
1•begueradj•26m ago•0 comments

The Modern Marketing Implementation Process

https://cunderwood.dev/2026/12/06/the-modern-marketing-implementation-process/
1•fenier•29m ago•0 comments

Pioneer Head Unit Animations

https://github.com/youxufkhan/carozerra
1•kakadu•30m ago•0 comments

1k Issues, 500 PRs: Using AI to build a B2B app with no coding experience

https://mkpr.dev/notes/using-ai-to-build-a-b2b-app/
1•articul8info•32m ago•0 comments

Show HN: If Pokemon cards are quantum resistant, find those gems here

https://www.decard.fun
1•alleybo55•33m ago•0 comments

Deadly Thoughts

https://drb.ie/article/deadly-thoughts/
1•lermontov•41m ago•0 comments

Albums I Like

https://jaydip.me/music
1•jdsane•43m ago•0 comments

Lawyers Suing Nvidia Seize 'Gold Mine' in Huang Senate Testimony

https://www.bloomberg.com/news/articles/2026-12-05/lawyers-suing-nvidia-seize-gold-mine-in-huang-...
2•gwu78•43m ago•0 comments

Test Your Agents Inside a Copy of Your Company

https://mirrordimensions.com/
2•nakam0t0•53m ago•0 comments

Show HN: Song Mashup Maker – overlay two songs in-browser, no upload

https://song-mashup-maker.com/
1•kevinzrzgg•54m ago•0 comments

The Marine Aquarium Screensaver [video]

https://www.youtube.com/watch?v=PprsZgA-kxs
1•gregsadetsky•58m ago•0 comments

New York court bars Kalshi from offering sports bets to users under 21

https://www.reuters.com/legal/government/new-york-ag-says-court-bars-kalshi-offering-sports-bets-...
25•gwu78•1h ago•2 comments

Depth of Field Simulator

https://jherr.github.io/depth-of-field/
1•soheilpro•1h ago•0 comments

Naive, stumbling Jensen Huang is indispensable to our economy?? Really!?

https://nypost.com/2026/12/03/business/naive-stumbling-jensen-huang-is-indispensable-to-the-econo...
1•gwu78•1h ago•2 comments

One Model Family Across Four Tiers: The Sovereign AitherOS Stack and Mesh

https://blog.aitherium.com/blog/sovereign-multi-device-stack-and-mesh-aitheros
1•waizns•1h ago•0 comments

I let an AI agent organise my life and it became weirdly protective of me

https://www.bbc.co.uk/news/articles/cxvg21mzypyyo
2•mellosouls•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).