frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

GitHub Down Again?

1•yodon•1m ago•1 comments

Show HN: TinyJS – small apps on Win/Mac/Linux

https://tinyjs.app
1•tarwin•1m ago•0 comments

Dropbox Security Breach: Hackers Access Accounts Through Authentication Flaw

https://decrypt.co/377099/dropbox-security-breach
3•rkagerer•4m ago•1 comments

Private group wants to launch "cheapest possible" mission to Alpha Centauri

https://arstechnica.com/space/2026/09/private-group-wants-to-launch-cheapest-possible-mission-to-...
1•Gaishan•6m ago•0 comments

Ask HN: Where do you announce your projects?

1•lennart-rth•8m ago•0 comments

Steve Jobs, Closed Macs, and Me: A Guest Post (Del Yocum)

https://pogueman.substack.com/p/steve-jobs-closed-macs-and-me-a-guest
3•rmason•8m ago•0 comments

Nature Deficit Disorder

https://en.wikipedia.org/wiki/Nature_deficit_disorder
2•gurjeet•12m ago•0 comments

TIL: Adam Sandler (a.k.a. Evil Elmo)

https://en.wikipedia.org/wiki/Evil_Elmo
4•sans_souse•13m ago•0 comments

High Agency Is High Variance

https://www.betonit.ai/p/high-agency-is-high-variance
2•paulpauper•17m ago•0 comments

Wendell Berry's Nine Rules

https://www.honest-broker.com/p/wendell-berrys-nine-rules
1•paulpauper•17m ago•0 comments

Slotstream: Swift, SSD Expert Streaming, and Breaking the LLM Memory Wall

https://singularitymoments.com/content/inside-slotstream-swift-ssd-expert-streaming-and-breaking-...
1•silentbob7•17m ago•0 comments

Show HN: Weedout – Safari extension that hides YouTube AI-labeled videos

https://masteranza.github.io/weedout/
6•masteranza•19m ago•0 comments

Every Reward Bends: Security Incentives and the OpenAI Hugging Face Incident

https://substack.norabble.com/p/every-reward-bends
1•nedruod•20m ago•0 comments

Argentina uses stablecoins, in 5 charts

https://a16zcrypto.com/posts/article/how-argentina-uses-crypto-5-charts/
1•syumei•22m ago•0 comments

Attacker stole METR API key, used $600K of credits, no one noticed for weeks

https://www.theregister.com/security/2026/09/01/attacker-stole-a-metr-api-key-used-600k-worth-of-...
1•joebuckwilliams•23m ago•0 comments

Does Someone Wanna Join?

https://natilah.com
1•machimilah•24m ago•1 comments

Show HN: Rails Baseline – a Rails SaaS starter with agent-readable architecture

https://railsbaseline.com/
1•polysaturate•26m ago•0 comments

What would it take to match model intelligence to the task?

https://tuneloop.io/blog/matching-model-intelligence
1•behat•26m ago•0 comments

Fallout: In 1991 a game by that name was created for the Amiga

https://www.gamesthatwerent.com/2026/08/fallout/
1•doener•30m ago•0 comments

Kubernetes3d built with Ambient CSS

https://kubernetes3d.com
2•kannanpoem1984•30m ago•0 comments

Show HN: Superagent, a computer for your coding agent (Mac, MIT)

https://superagent.computer/
1•pungme•31m ago•0 comments

Endonym and Exonym

https://en.wikipedia.org/wiki/Endonym_and_exonym
1•pndy•31m ago•0 comments

Much Ado About Adenoids

https://www.damninteresting.com/much-ado-about-adenoids/
1•SamuraiLion•33m ago•0 comments

Ask HN: Does HN block mobile browsers?

2•pbohun•33m ago•4 comments

Python Software Foundation News: 2026-psf-board-election-candidate-interview

https://pyfound.blogspot.com/search/label/2026-psf-board-election-candidate-interview
1•rbanffy•35m ago•0 comments

The State of Django 2026: Boring is so back – The JetBrains Blog

https://blog.jetbrains.com/pycharm/2026/08/the-state-of-django-2026-boring-is-so-back/
1•rbanffy•36m ago•0 comments

I found 5 fake DOIs for a famous ML paper while building a citation checker

https://strictcite.com/blog/attention-is-all-you-need-fake-dois
2•Tughan•37m ago•0 comments

Welcome to the 'You Can't Trust Your Own Eyes' Election

https://www.bloomberg.com/graphics/2026-opinion-ai-campaign-ads-need-more-safeguards/
4•imichael•41m ago•0 comments

Chess Variant Feedback?

https://transitionchess.com/?game=3ad1aea0-0c04-4b7b-8f4f-9fd1fa647cce
3•jonathancardena•41m ago•1 comments

Honor Robot Phone

https://www.honor.com/global/events/honor-robot-phone/
2•bookofjoe•42m 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).