frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

What's Easy Now? What's Hard Now?

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
1•r4um•1m ago•0 comments

He's king of the AI boom. Why do former colleagues say he can't be trusted?

https://www.washingtonpost.com/technology/2026/05/16/elon-musk-trial-against-sam-altman-renews-qu...
1•1vuio0pswjnm7•3m ago•0 comments

Filipino virtual assistants behind LinkedIn's "thought leadership" content mill

https://restofworld.org/2026/virtual-assistant-linkedin-engagement/
3•jethronethro•6m ago•0 comments

Building a Location Display Map with PCB Art

https://www.robopenguins.com/pcb-map/
2•axlan•8m ago•1 comments

Layoffs and Harsh AI Reality Inside Meta

https://www.cnbc.com/2026/05/18/metas-layoffs-starting-this-week-underscore-zuckerbergs-ai-realit...
2•signa11•9m ago•0 comments

Transition of Adobe eBook Platform to Wipro Engineering

https://helpx.adobe.com/enterprise/kb/eol-faq-adobe-digital-editions.html
2•tusslewake•11m ago•0 comments

Show HN: Closed Rings – A CLI-first time tracker for developers

https://closedrings.sh/en
2•samacs•11m ago•0 comments

Fender escalates legal campaign against S-style guitars

https://www.guitarworld.com/gear/electric-guitars/fender-cease-and-desist-lsl-instruments
2•rectang•11m ago•1 comments

A Fearful Phone Call and a Frantic Search Preceded Mosque Shooting

https://www.nytimes.com/2026/05/18/us/san-diego-mosque-shooting-search.html
2•Cider9986•15m ago•0 comments

Signal warns it would pull out of Canada if made to comply with access bill

https://www.theglobeandmail.com/politics/article-signal-warns-it-would-pull-out-of-canada-if-made...
6•gnabgib•21m ago•2 comments

Show HN: MyUUIDshop, Generate UUIDs and never worry about duplicates

https://myuuid.shop
2•scrygl•22m ago•1 comments

Show HN: Nano-RAG – Agentic multi-hog retrieval without graph database

2•freakynit•24m ago•0 comments

Microsoft rejects critical Azure vulnerability report, no CVE issued

https://www.bleepingcomputer.com/news/security/microsoft-rejects-critical-azure-vulnerability-rep...
4•olearysec•25m ago•0 comments

Windows AI Background Services Are Slowing Down Your PC

https://www.fixtech.co.ke/2026/05/windows-ai-background-services-are.html
4•rindodi•30m ago•2 comments

Show HN: It is hard to show genuine work on HN

3•shailendra_sis•33m ago•3 comments

Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised

https://safedep.io/mini-shai-hulud-strikes-again-314-npm-packages-compromised/
5•theanonymousone•35m ago•0 comments

Nordstjernen Web Browser

https://www.nordstjernen.org/
4•roschdal•36m ago•1 comments

What I Told Charles About RFCs

https://uaxd.fr/dispatches/what-i-told-charles-about-rfcs.html
1•enoch_cg•41m ago•0 comments

Linux 7.1-rc4: security list "almost unmanageable" from AI bug reports

https://lwn.net/Articles/1073192/
4•zdkaster•45m ago•1 comments

No, I don't want my kids using your stupid AI

https://www.theglobeandmail.com/life/article-no-i-dont-want-my-kids-using-your-stupid-ai/
4•petethomas•46m ago•3 comments

The 30 Year Game

https://remysharp.com/2026/05/17/the-30-year-game
1•tobr•53m ago•0 comments

In Memoriam: Peter G. Neumann (1932-2026)

https://cacm.acm.org/news/in-memoriam-peter-g-neumann-1932-2026/
2•fork-bomber•53m ago•0 comments

Standard Chartered to cut roles as AI use increases

https://www.bbc.com/news/articles/crep3v8vzglo
2•KnuthIsGod•57m ago•0 comments

Xiaomi YU7 GT Breaking the Nürburgring SUV Lap Record [video]

https://www.youtube.com/watch?v=Fx6d-K_8QXg
1•gainsurier•1h ago•0 comments

Mug Shots: A Small Town Noir (2014)

https://theappendix.net/issues/2014/4/mug-shots-a-small-town-noir
3•samclemens•1h ago•0 comments

As of April 2026: Iran has destroyed 42 U.S. Military Aircraft in Op: Epic Fury

https://nationalsecurityjournal.org/iran-destroyed-42-u-s-military-aircraft-in-operation-epic-fur...
25•Gaishan•1h ago•3 comments

We Made a World for Bots

https://empaworld.ai
1•sarah-oates•1h ago•0 comments

Adding Fake Shadows to My Puzzle Game

https://qcgeneral29.itch.io/lets-learn/devlog/1524864/alpha-version-8-fake-shadows
2•LandenLove•1h ago•0 comments

Causal Video Models Are Data-Efficient Robot Policy Learners

https://www.rhoda.ai/research/direct-video-action
1•e_iris•1h ago•0 comments

PyTorch Landscape

https://pytorch.landscape2.io
11•salamo•1h 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).