frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: PostgreSQL Now Supported in DBTrail

https://github.com/dbtrail/dbtrail
1•nethalo•31s ago•0 comments

ScreenshotAPIs – pay-as-you-go screenshot/PDF API, no subscription

https://screenshotapis.org
1•screenshotapi•56s ago•0 comments

Wp-SQLite-db: A single file drop-in for using a SQLite database with WordPress

https://github.com/aaemnnosttv/wp-sqlite-db
1•thunderbong•2m ago•0 comments

Dave Treadwell to Lead AWS Compute and ML Services as Dave Brown Departs

https://www.aboutamazon.com/news/company-news/aws-dave-treadwell-replaces-dave-brown-compute-ml-s...
1•nixgeek•3m ago•0 comments

Grok Build

https://x.ai/open-source
1•runesoerensen•6m ago•2 comments

SQL vs. Sparql in the Age of AI: Which One Works in Enterprises?

https://medium.com/timbr-ai/sql-vs-sparql-in-the-age-of-ai-which-one-actually-works-in-enterprise...
1•smartmic•6m ago•0 comments

Digital Bandung

https://www.theideasletter.org/essay/digital-bandung/
1•ragall•7m ago•0 comments

Are "no AI" disclaimers necessary?

https://blog.basementcommunity.com/are-no-ai-disclaimers-really-necessary/
1•speckx•7m ago•0 comments

Polygraph – Now your tests can't lie

https://github.com/jdubray/polygraph
2•jdubray•7m ago•0 comments

USDA lowers beef export sales by 90% amid growing doubts over data

https://www.reuters.com/business/usda-lowers-beef-export-sales-by-90-amid-growing-doubts-over-dat...
2•geox•8m ago•0 comments

"One Hot Node"

https://theinterposer.substack.com/p/one-hot-node
2•headspreader•10m ago•1 comments

AWS senior cloud executive departs after 18 years

https://www.cnbc.com/2026/07/15/amazon-dave-brown-treadwell-aws.html
2•nixgeek•10m ago•0 comments

Signal, Ledger, Loop: How to Measure a Mind Without Lying to It

https://xcgni.github.io/signal-ledger-loop/
1•brna-2•14m ago•1 comments

The Water Around NYC Is Kind of Dangerous

https://threetalkingheads.com/2026/07/15/drownings-in-nyc/
1•willmeyers•14m ago•0 comments

The 40-Year-Old Man-Child

https://www.theatlantic.com/culture/2026/07/ferris-bueller-40th-anniversary-influencer/687764/
3•paulpauper•15m ago•0 comments

The Rise of Grocery Tourism

https://thefreemanmag.substack.com/p/the-rise-of-grocery-tourism
1•paulpauper•16m ago•0 comments

Salary information to be shown on job ads under new laws (UK)

https://www.bbc.co.uk/news/articles/ckg7gg2zdexo
3•Oras•16m ago•0 comments

Show HN: Spellsurf – Create words from words

https://spellsurf.com/
2•alexakten•16m ago•0 comments

Revised Polish Alphabet

1•poloniaco•17m ago•0 comments

Did Frank Herbert Predict Bistable Displays Like E-Ink?

http://www.technovelgy.com/ct/Science-Fiction-News.asp?NewsNum=6907
1•speckx•18m ago•1 comments

X402 Foundation to Standardize Internet Payments for AI Agents

https://techstrong.ai/articles/linux-foundation-launches-x402-foundation-to-standardize-internet-...
1•CrankyBear•21m ago•0 comments

Software and softness (The etymology and meaning of the word 'software')

https://decasia.org/tech/2023/09/software-and-softness.html
1•lysace•22m ago•0 comments

Support for atomic block writes in Linux 6.13 (2025)

https://lwn.net/Articles/1009298/
2•gregsadetsky•22m ago•0 comments

YouMindAG – give AI coding tools full project context in one command

https://github.com/CESARBR2025/youmindag
1•CESARBR2025•23m ago•0 comments

Show HN: Vendo (YC S26) – Let your users add their own features to your product

https://github.com/runvendo/vendo
1•yousefh409•25m ago•1 comments

Microsoft CEO echoes Palantir CEO's warning on enterprise AI

https://www.msn.com/en-us/money/other/microsoft-ceo-echoes-palantir-ceo-s-warning-on-enterprise-a...
2•petethomas•25m ago•0 comments

GTX 1080s: Testing a Legend

https://www.lttlabs.com/articles/2026/07/15/gtx-1080s-revisiting-legends
3•LabsLucas•27m ago•0 comments

Grok Build Is OSS

https://github.com/xai-org/grok-build
6•skp1995•28m ago•0 comments

World Cup 2026 3D Experience

https://www.3d-bbc.co.uk/?matchId=151708
1•porterde•29m ago•0 comments

If you solve this CAPTCHA, you are not welcome here

https://lowentropy.net/posts/captcha/
2•speckx•30m 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).