frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Palantir adds three UK police forces to its beat with £10.1M deal

https://www.theregister.com/public-sector/2026/11/13/palantir-adds-three-uk-police-forces-to-its-...
1•jjgreen•34s ago•0 comments

Andrew Kelley – Programming Without Pointers [video]

https://www.hytradboi.com/2025/05c72e39-c07e-41bc-ac40-85e8308f2917-programming-without-pointers
1•sergio-gdr•2m ago•0 comments

Show HN: CloudHike – A backend your AI coding agent can set up over MCP

https://cloudhike.dev
1•rahul_cloudhike•3m ago•0 comments

iOS dadcam with lock screen icon, analog-ish film looks and funny shutter sounds

https://www.analogish.app/
1•kwiat•4m ago•1 comments

I'm working on a realistic lunar foundry simulation: Smelting, Casting, Power

https://www.youtube.com/watch?v=rpMQyxIV-i4
1•shroom1•6m ago•0 comments

Category Theory Illustrated – Sets

https://abuseofnotation.github.io/category-theory-illustrated/01_set/
1•frenchie_sans•8m ago•0 comments

Humans cause most accidents. Is Grand Theft Auto the key to safer roads?

https://www.bbc.com/future/article/20261110-grand-theft-auto-video-games-are-being-harnessed-to-m...
1•CaptainZapp•9m ago•0 comments

Scotland created Grand Theft Auto – is its video game industry still thriving?

https://www.bbc.co.uk/news/articles/c60qkn5gz392o
1•Kaibeezy•11m ago•0 comments

Ask HN: How much more productive you were today with Outlook offline?

1•jimnotgym•13m ago•1 comments

Jensen Huang Admitted He Was Facing an "Avalanche" of Excess Wafers and Memory

https://respawnfirst.com/before-resigning-jensen-huang-admitted-he-was-facing-an-avalanche-of-exc...
6•oscarfr•13m ago•1 comments

Tentative Advice on Building with AI

https://oath.tech/pub/2026/08/tentative-advice-building-with-ai/
1•MrBuddyCasino•13m ago•0 comments

AI Mixing and Mastering Services Compared

https://moozix.com/compare
1•fenderdude•14m ago•0 comments

CrawlX – Map the attack surface that only exists after JavaScript runs

https://crawlx.dev/
1•kaankeskin•15m ago•0 comments

A Bettercap Tutorial – From Installation to Mischief

https://danielmiessler.com/blog/bettercap
1•rumpleforeskin•17m ago•0 comments

'I'm a piece of sh–': Jensen Huang's last hours as Nvidia CEO

https://sg.news.yahoo.com/im-a-piece-of-sh---jensen-huangs-last-hours-as-nvidia-ceo-054123426.html
2•FartyMcFarter•17m ago•3 comments

Bandits on Movie Ratings

https://stochastic.blog/bandits-on-movie-ratings/
1•Anon84•19m ago•0 comments

How Strata Fits a 125B AI Model into Consumer Hardware

https://www.youtube.com/watch?v=u-yf-HlKhxU
1•lroe•19m ago•0 comments

ASDEX Upgrade – The hottest place to be in research

https://www.mpg.de/my-science-and-me-gallery
1•Bluestein•19m ago•0 comments

Show HN: Pcap Packet Analyzer – Inspect .pcap Files in the Browser

https://quickfit.iuschro.com/calc/pcap-packet-analyzer/
2•IUSCHRO•21m ago•0 comments

Ask HN: How do you upgrade the models you run in production?

1•amirbraham•23m ago•0 comments

Tech Job Market 2026, Where Is AI's VisiCalc? – Food for Agile Thought #570

https://age-of-product.com/food-agile-thought-570-tech-job-market-2026/
3•swolpers•25m ago•0 comments

Training a 1T-Parameter MoE on EU public infrastructure

https://pytorch.org/blog/training-a-1t-parameter-moe-on-eu-public-infrastructure-with-pytorch-and...
3•amunozo•26m ago•0 comments

Terminal borders that don't cost a cell

https://www.joshka.net/cell-borders/
3•frostbyte7•30m ago•0 comments

Fastcord: A Native Client for Discord

https://creikey.com/fastcord/
4•samhsmith•33m ago•0 comments

Osmosis Restarts After Halt; Upbit Pauses Transfers

https://thedefiant.io/news/infrastructure/osmosis-restarts-after-halt-upbit-pauses-transfers
3•cmb24k•33m ago•0 comments

A Catio Can Just Be a Box - Here's How to Build One

https://www.nytimes.com/2026/11/13/realestate/a-catio-can-just-be-a-box-heres-how-to-build-one.html
4•wainstead•37m ago•0 comments

Show HN: I'm putting Sentrint up for acquisition, bidding starting at $5,102 USD

https://sentrint.com/
6•heythere47•37m ago•0 comments

A DrRacket style editor for Clojure with some Lisp Machine inspired features

https://jonquil.b12n.app/
2•yogthos•39m ago•0 comments

Show HN: quint-audit - deterministic spec-quality auditor for Quint (OCaml)

https://github.com/Mimosa-Grove/quint-audit
2•phillc73•39m ago•0 comments

A Conditional Proof of the Goldbach Conjecture

https://mrc.sdu.edu.cn/english/info/1018/1514.htm
4•decompwlj•40m 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).