frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

All or nothing: distributed transactions in Azure Cosmos DB

https://devblogs.microsoft.com/cosmosdb/all-or-nothing-distributed-transactions-in-azure-cosmos-db/
1•axis_official•1m ago•0 comments

New York Times Prohibits Photographers from Using Photoshop 2027

https://petapixel.com/2026/11/24/new-york-times-prohibits-photographers-from-using-photoshop-2027/
3•colinprince•6m ago•0 comments

Dutch data protection authority advises against purchasing AI camera glasses

https://autoriteitpersoonsgegevens.nl/en/current/ap-advises-against-purchasing-ai-camera-glasses-...
2•todsacerdoti•8m ago•0 comments

Showing a MessageBox from Kernel-Mode

https://vollragm.github.io/posts/kernel-message-box/
1•todsacerdoti•9m ago•0 comments

Invisible Wave Hits California, Oregon and Canada as Towns Evacuate

https://www.abovethenormnews.com/2026/11/24/king-tides-california/
4•madihaa•12m ago•0 comments

Show HN: Expense Canary, catching duplicate charges and bank fees from Plaid

https://expensecanary.com/
3•karlacastropro•14m ago•0 comments

Pakistan's first astronaut goes to space aboard Chinese rocket

https://www.bbc.com/news/live/cmd71g9lzg1gt
1•motionlessveloc•16m ago•0 comments

Show HN: Vibe Linux

https://mkornreich.me/projects/vibe-linux/
1•enjoyyourlife•17m ago•0 comments

Show HN: Edit PDF text in browser RAM with zero uploads (PDFTransform)

https://pdftransform.pages.dev/edit-pdf-text
1•Digital_alchemi•17m ago•0 comments

An attempt to make the proof of the Riemann Hypothesis human readable

https://github.com/jimjamzola/RH-Alpoge-Reconstruction/tree/main
1•theanonymousone•19m ago•0 comments

Transformation of Creative Platforms in the Age of Platform Capitalism

https://medium.com/@smoking2man/transformation-of-creative-platforms-in-the-age-of-platform-capit...
2•Aldus551•21m ago•0 comments

Longer battery storage durations reshape US power markets

https://www.reuters.com/business/energy/longer-battery-storage-durations-reshape-us-power-markets...
1•toomuchtodo•21m ago•0 comments

Series F

https://sierra.ai/blog/series-f-30b
1•doppp•23m ago•0 comments

Illustrated Sourcebook of Mechanical Components

https://archive.org/details/Illustrated_Sourcebook_Of_Mechanical_Components
2•toomuchtodo•28m ago•0 comments

Abolish Lock Poisoning

https://lucumr.pocoo.org/2026/11/25/poisoning/
2•Tomte•32m ago•0 comments

Treasury CIO is too busy vibecoding instead of doing his job #147

https://github.com/samcorcos/legatum/issues/147
6•aanet•35m ago•1 comments

Selling Sentrint.com, a security scanner for apps (15% commission, $2,600 floor)

https://sentrint.com/
1•heythere47•36m ago•0 comments

Which model in OpenCode is better at reasoning?

1•pydevgo•37m ago•0 comments

US court convicts China's Huawei for fraud, conspiring to steal trade secrets

https://www.cnn.com/2026/11/24/china/china-huawei-iran-conviction-intl-hnk
3•1659447091•38m ago•0 comments

GTA6 Recomp: Unofficial tracking the effort to bring GTA 6 natively to PC

https://gta6recomp.com/repo
1•rib3ye•41m ago•0 comments

Assessing carbon emissions and energy consumption of US hyperscale data centres

https://www.nature.com/articles/s41893-026-01985-7?trk=article-ssr-frontend-pulse_little-text-block
2•latentframe•42m ago•0 comments

Y Combinator: How to Build a Jet Engine from Scratch [video]

https://www.youtube.com/watch?v=-ieJwYq4j-o
1•ksec•43m ago•0 comments

Show HN: I make open-source flight test stand

https://github.com/crocone/flying-test
2•keepplain•43m ago•0 comments

Lydian Chromatic Concept of Tonal Organization

https://en.wikipedia.org/wiki/Lydian_Chromatic_Concept_of_Tonal_Organization
1•benbreen•44m ago•0 comments

Show HN: Simulusion – DreamerV3, IRIS, Genie and other world models in PyTorch

https://github.com/ParamThakkar123/simulusion
2•paramthakkar•48m ago•0 comments

Type errors cost our coding agents under 1% of their time

https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their...
2•ksec•50m ago•0 comments

Native Shell v0.7.0 Released

https://nsh.dev/releases/
1•ksec•52m ago•0 comments

In GTA VI, every stolen car is a music discovery machine

https://www.npr.org/2026/11/24/nx-s1-6052997/gta-vi-radio-music-discovery
2•blinding-streak•52m ago•0 comments

US Army plans to detonate an Iowa ammo plant, leading to airbourne lead plume

https://www.centredaily.com/news/nation-world/national/article318231892.html
2•illidan1000•55m ago•2 comments

Show HN: U.S. Interstate Weather

https://www.interstateweather.com/
14•projproj•56m ago•4 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).