frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Alex Karp was right, you don't own your data

https://fortune.com/2026/08/26/alex-karp-was-right-you-dont-own-your-data/
1•rocketcity•1m ago•0 comments

Safety measures causing people to take more risks

https://nudged.himynamesdave.com/gem/safety-measures-causing-people-to-take-more-risks/
1•panoramas4good•2m ago•0 comments

Show HN: Llmcanvas.chat Tree-based LLM chat on an infinite canvas

https://llmcanvas.chat
2•emrekmz•2m ago•0 comments

Compute Has a Turkey Problem

https://chico.dev/Compute-Has-A-Turkey-Problem/
1•fthiesen•3m ago•0 comments

The Importance of Reading (and Teaching) Cyberpunk in the Age of AI

https://reactormag.com/the-importance-of-reading-and-teaching-cyberpunk-in-the-age-of-ai/
1•mindracer•3m ago•0 comments

CowCode- OpenCode Fork with UI Like ChatGPT/Claude Desktop

https://github.com/callumreid/cow_code
2•callum_reid•3m ago•2 comments

Spain wants data centres on 80% renewables every hour, or no grid connection

https://thenextweb.com/news/spain-data-centre-rules-renewables-grid
2•AndrewDucker•4m ago•0 comments

Show HN: Flex your website DR in $1

https://www.outdr.lol
1•maulikdhameliya•4m ago•0 comments

Surprise and Shine

https://developer.apple.com/news/?id=s6spdug0
1•johnbehnke•6m ago•0 comments

FDA Approves First in Class Targeted Therapy for Metastatic Pancreatic Cancer

https://www.fda.gov/news-events/press-announcements/fda-approves-first-class-targeted-therapy-met...
2•leopoldj•7m ago•0 comments

Nothing

https://getnothing.lol/
1•PatsTools•9m ago•1 comments

Chrome Auto Browse: The Hard Part Isn't the AI

https://bumbletap.com/blog/chrome-auto-browse-hard-part
1•umershahzeb•10m ago•0 comments

DuckDB and the Changing Physics of Analytics

https://www.allthingsdistributed.com/2026/08/duckdb-and-the-changing-physics-of-analytics.html
4•rook1•10m ago•0 comments

Silicon Valley Is Not Ambitious Enough

https://mayank-agrawal.com/essays/silicon-valley-is-not-ambitious-enough/
2•timshell•11m ago•1 comments

Morocco's ferry ports are getting chaotic this week

https://www.google.com/url?q=https%3A%2F%2Fvoostream.com%2F%3Futm_source%3Dacademic%26utm_medium%...
3•voostreamapp•13m ago•1 comments

Apple September Keynote ‘Surprise and Shine’

https://twitter.com/gregjoz/status/2092645294832054275
3•zof3•13m ago•0 comments

Gguf: Harden loader against malformed tensor dims and metadata types

https://github.com/ggml-org/llama.cpp/pull/25596
2•gzxharrison001•13m ago•0 comments

Sshto v1.02

https://github.com/vaniacer/sshto
1•vaniac•14m ago•1 comments

I Interviewed the Outbid.lol Guy

https://www.highsignal.io/220k-in-5-days-the-outbid-lol-interview/
1•Pete-Codes•14m ago•1 comments

The Root of the Root of All Evil

https://www.computerenhance.com/p/theroot
1•renehsz•15m ago•0 comments

The Surprising Mental-Health Benefits of Getting Away

https://www.wsj.com/lifestyle/travel/mental-health-benefits-of-travel-834befc7
2•julienchastang•16m ago•0 comments

Apple Event Announced for September 9: 'Surprise and Shine'

https://www.macrumors.com/2026/08/26/apple-iphone-event-2026/
7•stalfosknight•18m ago•0 comments

Tech Lead Intelligence – Async Python Scraping Suite YC, ATS Jobs, and AI Models

https://tech-scraper-suite-2ygx4en4upe5gxtqh7truy.streamlit.app/
2•Kravennagen•18m ago•0 comments

Performance Excuses Debunked

https://www.computerenhance.com/p/performance-excuses-debunked
3•j0selit0•19m ago•0 comments

Launch HN: Risklytics (YC S26) – Insurance brokerage for frontier tech companies

https://www.risklytics.ai/
5•AlexRisio•20m ago•0 comments

fork() Considered Harmful in macOS

https://www.formal.ai/blog/dont-use-fork-macos/
5•drewgregory•20m ago•0 comments

Hackers Broke into Justice Department, NASA, Federal Reserve, Senate

https://www.justice.gov/opa/pr/justice-department-and-fbi-seize-platforms-operated-and-used-china...
6•2OEH8eoCRo0•20m ago•3 comments

RevMed receives early FDA approval for 'groundbreaking' pancreatic cancer drug

https://www.biospace.com/drug-development/revmed-receives-early-fda-approval-for-groundbreaking-p...
2•hentrep•21m ago•1 comments

FDA Approves Drug Poised to Transform Care for Pancreatic Cancer

https://www.nytimes.com/2026/08/26/science/pancreatic-cancer-daraxonrasib-approval.html
2•gz5•21m ago•1 comments

Show HN: Collections, a Chrome side panel to save links, text and images

https://collections.r44j.dev/
2•vadegharraj•22m 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).