frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Iran threatens Gulf data centres: How exposed is the region's internet?

https://www.aljazeera.com/news/2026/10/13/iran-threatens-gulf-data-centres-how-exposed-is-the-reg...
1•snarky-comments•38s ago•0 comments

Mobile phone sales plunge to lowest level in 14 years

https://www.computerworld.com/article/4234747/cell-phone-sales-plunge-lowest-level-in-14-years.html
1•clumsysmurf•2m ago•0 comments

OCP 2026: Agentic AI Pushes the Data Center from Chip to Grid

https://www.datacenterfrontier.com/hyperscale/article/55411534/ocp-2026-agentic-ai-pushes-the-dat...
1•wondersky•3m ago•0 comments

Y Combinator Category on Jeopardy

https://j-archive.com/showgame.php?game_id=9554
2•ojbyrne•5m ago•0 comments

A purely in-browser harness – let SaaS users act with natural language

https://twitter.com/gametorch_app/status/2110192170116534566
2•gametorch•6m ago•0 comments

Elm-Toolkit – Collection of Elm Tools for Devs in the Node and TypeScript World

https://github.com/kioan000/elm-toolkit
1•TheWiggles•9m ago•0 comments

Early results show 65% fewer input tokens overall

https://github.com/cauebraz/squeeze/tree/main/bench
2•cauebraz•16m ago•0 comments

Drone Strikes Didn't Take Out Russian Bot Farm, but We Were Primed to Believe It

https://www.motherjones.com/politics/2026/10/ukraine-drone-strike-yandex-russian-bot-farm-right-w...
2•ggm•17m ago•0 comments

Visa gets Beijing's green light for bank card business

https://www.cnbc.com/2026/10/13/visa-china-green-light-bank-card-business-.html
2•lxm•18m ago•0 comments

Show HN: Brutus CLI – Tiny Dagger to Kill Your Mac's Caesar

https://github.com/smashah/brutus
3•smashah•19m ago•0 comments

Light Touch: a classic iOS device emulator (iOS 1–7)

https://github.com/samhenrigold/LightTouchMac
4•ghoulishly•22m ago•0 comments

Why robots can't pick strawberries yet [video]

https://www.youtube.com/watch?v=TumxO2glmPQ
3•xqcgrek2•23m ago•0 comments

Nvidia Reportedly Ending the RTX 5090, Reserves GB202 for Workstation GPUs

https://www.techpowerup.com/353578/nvidia-reportedly-ending-the-rtx-5090-reserves-gb202-silicon-f...
6•kristianp•29m ago•1 comments

Original iPhone OS 1.0 Emulated in the Browser

https://2007.mobile/
6•tech234a•29m ago•0 comments

AI Scaling vs. Human Scaling

https://www.tobyord.com/writing/ai-scaling-vs-human-scaling
4•gmays•32m ago•0 comments

Ask HN: What do you think will be hot in 2027 with on-device AI

2•mrburton•35m ago•0 comments

An Open Letter on AI and Cybersecurity from the Scientific Community

https://ai-security-letter.org/
7•qainsights•37m ago•0 comments

Show HN: Can AI read your mind?

https://jeffyclassify.com/blog/mind-reader/
4•nico•41m ago•2 comments

Everything New in OpenCode 2.0

https://www.augmentedswe.com/p/whats-new-in-opencode-2
4•wordsaboutcode•42m ago•1 comments

It Could Be Otherwise: Science in the Age of Uncertainty

https://blue-continuum.com/it-could-have-been-otherwise
5•dnetesn•43m ago•0 comments

Show HN: AI Hub – Open Access Lesson Plans for Teaching Students about AI

https://aihub.remakelearning.org/
5•gault8121•51m ago•0 comments

Show HN: The LAST DOOR – a tiny game about deciding when to leave

https://sydro.surge.sh/lastdoor/
4•sydro9•59m ago•0 comments

Borrowing Strength (Drug Dosing)

https://arenamag.com/articles/borrowing-strength
4•elo2000•1h ago•0 comments

Show HN: PDF to ePub Conversion Tool for Mac

https://github.com/bnlcas/pdf2epub
4•blululu•1h ago•0 comments

Apples to Apples: Getting Type Mappings Right in LLM-Based Code Translation

https://www.codemetal.ai/research/apples-to-apples-getting-type-mappings-right-in-llm-based-code-...
8•matt_d•1h ago•0 comments

Learning What to Investigate Next: Meta-Reasoning for Long-Horizon Agents

https://arxiv.org/abs/2610.02525
5•matt_d•1h ago•0 comments

KBEmacs, MIT's Programmer's Apprentice, Reanimated

https://github.com/jeffshrager/kbemacs
3•abrax3141•1h ago•0 comments

Ask HN: Where has creativity in software gone?

6•piratesAndSons•1h ago•7 comments

Show HN: Built a Rome City Builder

https://tiberava.pages.dev/
13•granga•1h ago•0 comments

DOJ arrests 2, seizes 187 devices in North Korean laptop farm crackdown in Texas

https://www.reuters.com/legal/government/doj-arrests-two-seizes-187-devices-north-korean-laptop-f...
10•usernomdeguerre•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).