frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A proof of the Aaronson-Ambainis conjecture

https://psi.inc/research/aaronson-ambainis/
1•gmays•1m ago•0 comments

Counterpointle

https://counterpointle.vercel.app
1•thatxliner•1m ago•0 comments

Lorem ipsum's fake history is one Latin professor's honest mistake [video]

https://www.youtube.com/watch?v=kL1PDqzqhM4
1•nordara•2m ago•0 comments

Exact: A new agent-native app framework written in Rust, from Expo team

https://twitter.com/ccheever/status/2119764253242695754
1•wahnfrieden•2m ago•0 comments

The New Auto and Auto Code Routers on OpenRouter

https://openrouter.ai/blog/announcements/auto-and-auto-code-routers/
1•gmays•2m ago•0 comments

Home of the Internet's Spacer.gif

https://spacergif.org/
1•reconnecting•3m ago•0 comments

Musk admits Tesla doesn't have the talent to build more than one car at a time

https://electrek.co/2026/11/09/tesla-deep-bench-gone-musk-admits-talent-shortage/
1•greedo•4m ago•0 comments

Shake Signals – The economy through a small business owner's eyes

https://shakegraph.com/signals
1•iamthedruid•6m ago•0 comments

Pain of Coding vs. Pain of Configuring

https://vivekhaldar.com/articles/pain-of-coding-vs-pain-of-configuring/
1•gandalfgeek•7m ago•0 comments

Open-source remote browsers for humans and agents

https://easi.run/
1•roxygens•8m ago•0 comments

Voice Is Underutilized

https://benjamincongdon.me/blog/2026/11/03/Voice-is-Underutilized/
1•speckx•8m ago•0 comments

Protesters slam AI after entering Microsoft data centre site

https://www.independent.co.uk/tv/news/protesters-microsoft-data-centre-amsterdam-video-b3080959.html
1•rbanffy•8m ago•1 comments

Ambitious Prompting – What's Bigger Than a Factory?

https://robotpaper.ai/ambitious-prompting-whats-bigger-than-a-factory/
1•royosherove•9m ago•0 comments

EIB-led initiative channels over €10B into European scale-ups

https://www.eib.org/en/press/all/2026-415-major-institutional-investors-join-eib-group-and-eu-mem...
2•greekanalyst•11m ago•0 comments

Lumnik – read legacy ERPs and exports without touching them

https://github.com/icreated/lumnik-open
1•icreated•12m ago•1 comments

Supply chain attack on Qubole customers

https://sentra.io/blog/breaches/inside-the-qubole-supply-chain-attack
1•ronreiter•13m ago•0 comments

Takaichi administration announces emergency cyberdefense package

https://www.japantimes.co.jp/news/2026/11/06/japan/takaichi-cybersecurity-package/
1•rbanffy•13m ago•0 comments

Norway has purchased 500k drones for Ukraine (Norwegian)

https://www.forsvaretsforum.no/droner-fma-forsvarsmateriell/noreg-har-kjopt-500000-dronar-til-ukr...
4•e12e•13m ago•1 comments

What does this company do?

https://domainhr.mistraldemo.workers.dev
1•Topfi•13m ago•0 comments

Show HN: ApiClay – Turn a Website, Google Sheet or Database into a Paid API

1•apiclay•14m ago•0 comments

Escaping the Quicksand: A Call to Arms

https://queue.acm.org/doi/10.1145/3858607
1•matt_d•15m ago•0 comments

Show HN: A Terminal UI for Hacker News, and CLI for Agents

https://github.com/kaushalvivek/hn-cli
1•kaushalvivek•15m ago•0 comments

Vibe Slopped Cryptography

https://moq.dev/blog/rind/
1•bikelang•16m ago•0 comments

We Wanted to Replace the Internet with Artificial Intelligence, but Ended UpBack

https://medium.com/@smoking2man/we-wanted-to-replace-the-internet-with-artificial-intelligence-bu...
1•Aldus551•17m ago•0 comments

GR00T 2

https://research.nvidia.com/labs/gear/gr00t-2/
2•E-Reverance•17m ago•0 comments

Vanderbilt University responding to an active cybersecurity incident

https://news.vanderbilt.edu/2026/11/09/nov-9-active-cybersecurity-incident-updates/
2•nateb2022•17m ago•0 comments

AetherScope v2.2.1 – open-source SAST

https://github.com/maxxwwim/AetherScope-SAST-150-CWE-MCP
1•actheglitch•20m ago•0 comments

Xinhua Unveils Bionic Humanoid Robot News Anchors with Ubtech – Unite.ai

https://www.unite.ai/xinhua-unveils-bionic-humanoid-robot-news-anchors-with-ubtech/
1•rbanffy•22m ago•0 comments

Air holes etched in silicon make flat ultraviolet focusing mirrors

https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-9/issue-01/016002/UV-Mie-vo...
1•titusblair•22m ago•1 comments

Framework of the Analytical Engine

https://blog.plan28.org/2026/11/framework-of-analytical-engine.html
2•jgrahamc•22m 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).