frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Rat King

https://en.wikipedia.org/wiki/Rat_king
1•fittingopposite•2m ago•0 comments

Physical Reality as Hypermedia

https://paper.supernovalabs.co.uk
1•supernovalabs•3m ago•0 comments

Lindley's Paradox

https://en.wikipedia.org/wiki/Lindley%27s_paradox
1•mschnell•12m ago•0 comments

Predicting home electricity usage from historical patterns in Home Assistant

https://blog.cyplo.dev/posts/2026/03/load-prediction-in-home-assistant/
1•swq115•14m ago•0 comments

I made a GPU price tracker

https://gpusniper.com/
1•codingblink•17m ago•1 comments

HopTab–free,open source macOS app switcher and tiler that replaces Cmd+Tab

https://www.royalbhati.com/hoptab
2•robhati•19m ago•0 comments

We built Avancé Communicatie (digital services for Dutch companies)

https://www.avancecommunicatie.nl/
2•bullmeister•23m ago•0 comments

Why do we need apps like cursor?

1•amanhij•24m ago•0 comments

Ask HN: Top repos you'd want offline on a desert island?

2•quijoteuniv•25m ago•2 comments

Computer Networks: A Systems Approach

https://open-cloud.github.io/index.html
1•vismit2000•31m ago•0 comments

Kattis Problem Archive

https://open.kattis.com
1•vismit2000•33m ago•0 comments

Show HN: Helios – 3 Claude agents (Red vs. Blue) hack and patch your codebase

https://gitlab.com/nakaiwilliams20/helios
2•nakaiwilliams•35m ago•0 comments

Synaphe – A type-safe language for hybrid AI and quantum computing

https://github.com/martus-spinther/synaphe-project
2•martus-spinther•44m ago•0 comments

Mindwtr – Open-source, local-first GTD app (Tauri and React Native)

https://github.com/dongdongbh/Mindwtr
1•dongdongbh•45m ago•0 comments

Quantum mechanics simulation Python library for research and learning

https://github.com/iDEA-org/iDEA
1•jw1294•46m ago•1 comments

Proof Theory and Logic Programming

https://www.lix.polytechnique.fr/Labo/Dale.Miller/ptlp/
1•remywang•48m ago•0 comments

Tell HN: Microsoft365 "Convert to Paid" checkout silently default to 25 licenses

2•davidstarkjava•51m ago•1 comments

Show HN: Passport Globe (See where your passport takes you)

https://hariharan.uno/globe
1•hariharan_uno•1h ago•0 comments

Show HN: TMA1 – Local-first observability for LLM agents

https://tma1.ai/
2•killme2008•1h ago•0 comments

Show HN: Yeet – Throw AI tasks at hardware and walk away (Nomad and OpenShell)

https://github.com/wan0net/yeet
1•wan0net•1h ago•0 comments

Phase Transitions and Computation

https://theory.org/complexity/cdpt/html/node5.html
1•downboots•1h ago•0 comments

Show HN: Banish: A declarative framework for rule-based state machines in Rust

https://github.com/LoganFlaherty/banish/releases/tag/v1.3.0
1•LoganFlaherty•1h ago•0 comments

Bitcoin mining difficulty drops 7.8% as miner exodus accelerates amid AI pivot

https://www.theblock.co/post/394579/bitcoin-mining-difficulty-drops-7-8-as-miner-exodus-accelerat...
4•adrianwaj•1h ago•1 comments

Review: Why Evolution Is True

https://ncse.ngo/review-why-evolution-true
2•akbarnama•1h ago•0 comments

We Read What Delve Ships to the Browser

https://security.redeux.ai/research/delve-compliance-posture
1•chasewarren•1h ago•0 comments

Isometric exercise: The most efficient fitness regime?

https://www.bbc.com/future/article/20260319-isometric-exercise-the-most-efficient-fitness-regime
2•akbarnama•1h ago•0 comments

A Rant about Resolutions

https://blog.brixit.nl/rant-about-resolutions/
1•vinhnx•1h ago•0 comments

Is Simple Good?

https://darth.games/posts/is-simple-good/
1•vinhnx•1h ago•0 comments

Delve Accused of Fraud

https://techcrunch.com/2026/03/21/delve-accused-of-misleading-customers-with-fake-compliance/
5•zlu•1h ago•0 comments

Sashiko: AI code review system for the Linux kernel spots bugs humans miss

https://www.theregister.com/2026/03/20/sashiko_code_review_linux/
2•maxloh•1h ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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).