frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Peter Sullivan on 'different world' after 14,000 days in prison

https://www.bbc.co.uk/news/articles/cjr0rz3wrrqo
2•lifeisstillgood•4m ago•0 comments

Finnegans Wake

https://en.wikipedia.org/wiki/Finnegans_Wake
1•reconnecting•6m ago•0 comments

Mosquitoes discovered in Iceland for first time

https://www.japantimes.co.jp/environment/2025/10/28/climate-change/mosquitoes-iceland-first-time/
2•PaulHoule•7m ago•0 comments

Dating for nerds (part 1): problem diagnosis (2017)

https://p.migdal.pl/blog/2017/07/dating-for-nerds/
1•KolmogorovComp•7m ago•0 comments

How Brazil's innovative 'Pix' payment system is angering Trump and Zuckerberg

https://www.france24.com/en/americas/20250731-how-brazil-innovative-pix-payment-system-is-angerin...
2•pseudolus•7m ago•0 comments

The Visual Display of Quantitative Information [pdf]

https://kyl.neocities.org/books/%5BTEC%20TUF%5D%20the%20visual%20display%20of%20quantitative%20in...
1•kekqqq•8m ago•0 comments

The Easiest Way to Build a Type Checker

http://jimmyhmiller.com/easiest-way-to-build-type-checker
1•emschwartz•9m ago•0 comments

Systemic Vulnerability of Large Language Models to Solar Weather

https://zenodo.org/records/17678602
2•datanality•11m ago•0 comments

Trying Out C++26 Executors

https://mropert.github.io/2025/11/21/trying_out_stdexec/
1•jandeboevrie•11m ago•0 comments

Arvid Noe

https://en.wikipedia.org/wiki/Arvid_Noe
1•0xdada•12m ago•0 comments

Okay, So Apple's Using 3D Printing in the iPhone Air. But How?

https://www.ifixit.com/News/114439/okay-so-apples-using-3d-printing-in-the-iphone-air-but-how
1•wayne•12m ago•0 comments

Time in C++: Understanding <chrono> and the Concept of Clocks

https://www.sandordargo.com/blog/2025/11/19/clocks-part-1-intro-to-chrono
1•jandeboevrie•12m ago•0 comments

I use AI to synthesize all my datasets now

https://thefulldatastack.substack.com/p/how-i-synthesize-useful-datasets
1•nhemerson•14m ago•0 comments

Code Wiki: Accelerating your code understanding

https://developers.googleblog.com/introducing-code-wiki-accelerating-your-code-understanding/
2•taubek•14m ago•0 comments

How to work with product: To what port do you sail?

https://blog.nilenso.com/blog/2025/11/21/how-to-work-with-product-towards-what-port-do-you-sail/
1•sriharis•15m ago•0 comments

The Codemasters Archive

https://thecodemastersarchive.co.uk/
1•elvis70•15m ago•0 comments

WhatsApp API flaw let researchers scrape 3.5B accounts

https://www.bleepingcomputer.com/news/security/whatsapp-api-flaw-let-researchers-scrape-35-billio...
1•leecoursey•19m ago•1 comments

Ubisoft's Tencent deal goes through

https://www.gamesindustry.biz/ubisofts-tencent-deal-goes-through
1•Irtaza1•22m ago•0 comments

You're Senior After 6 Years. Now What?

https://hugo.writizzy.com/senior-with-6-years-of-experience-what-s-next
2•hlassiege•24m ago•1 comments

Project Habakkuk

https://en.wikipedia.org/wiki/Project_Habakkuk
1•thunderbong•25m ago•0 comments

OpenLineage: An open framework for data lineage collection and analysis

https://openlineage.io/
1•mooreds•25m ago•0 comments

The Prompt Engineer Is the Artist of Our Age

https://thereader.mitpress.mit.edu/the-prompt-engineer-is-the-artist-of-our-age/
1•pseudolus•26m ago•0 comments

The Yak Shaver's Creed (2016)

http://james-iry.blogspot.com/2016/03/the-yak-shavers-creed.html
1•mooreds•27m ago•0 comments

Ask HN: First Steps with a Patent Troll?

4•throwawaynvmbr•27m ago•5 comments

UK Army will use Call of Duty to train soldiers

https://www.telegraph.co.uk/news/2025/11/21/army-will-use-call-of-duty-to-train-soldiers/
1•mooreds•28m ago•0 comments

The Mausoleum at Halicarnassus Was a Wonder of the Ancient World

https://www.cnn.com/travel/mausoleum-halicarnassus-bodrum-turkey
1•breve•29m ago•0 comments

FBGL: Framebuffer Graphics Library and Framebuffer Emulator

https://github.com/lvntky/fbgl/releases/tag/v1.1.0
1•leventkaya•30m ago•0 comments

Downloadable ≠ Open Source

https://www.downloadableisnotopensource.org
4•keepamovin•38m ago•2 comments

Gremlin Graphics – P.Harrap, I.Stewart and G.Holmes Talk at Crash Live 2025[video]

https://www.youtube.com/watch?v=f1SvFEaxK7w
1•elvis70•38m ago•0 comments

Young women are almost twice as likely to be diagnosed with cancer as young men

https://www.cnn.com/2025/01/16/health/young-women-cancer-incidence-report-wellness
2•breve•39m ago•1 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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