frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Turn chess game history into opening drills

https://plyscope.com/
1•thursday1•5m ago•0 comments

AI Can Answer Almost Anything. It Still Can't Tell You What Matters

https://medium.com/freedomofthought/ai-can-answer-almost-anything-it-still-cant-tell-you-what-mat...
1•raynchad•7m ago•0 comments

Ask HN: What are your biggest problems and fixes with multisession engineering?

1•top_rooster•8m ago•0 comments

I built a scanner to find a SaaS worth cloning. Its best answer was "don't."

https://www.petervijeh.com/projects/saas-scanner
2•p-s-v•9m ago•0 comments

Proton Incident Report

https://proton.me/blog/august-27-outage-incident-report
1•abnercoimbre•10m ago•0 comments

The Productivity Trap Nobody Talks About

https://medium.com/freedomofthought/the-productivity-trap-nobody-talks-about-ca251f72b471
1•raynchad•13m ago•0 comments

Monarch Chrysalis: a sparse Mixture-of-Experts model that reasons in Neuralese

https://cymela.com/research/first-of-its-kind
1•Cymela•13m ago•0 comments

Qwen3.8 27B on MacPro 32GB (Tasks) [video]

https://www.youtube.com/shorts/O4JvN4SlNnk
1•thinkevolve•16m ago•0 comments

OpenAI acquires Mac Minis, Mac Studios for AI training

https://cryptobriefing.com/openai-acquires-thousands-of-mac-minis-mac-studios-for-ai-training-the/
1•porridgeraisin•19m ago•0 comments

A Secure Hermes and Mnemosyne Memory Architecture

https://adithyanak.com/optimal-hermes-mnemosyne-memory-architecture/
1•akoffsec•20m ago•0 comments

Building Indices from Prediction Markets

https://lookbacklabs.com/blog#geopolitical-risk-panoramic-view
2•chaltik-human•21m ago•0 comments

Mark Zuckerberg's Social Reckoning

https://www.newyorker.com/magazine/2026/09/07/mark-zuckerbergs-social-reckoning
5•fortran77•25m ago•0 comments

Music Sparks Story-Like Brain Activity

https://communitynews.org/science-tech/princeton-study-music-brain-activity-imagined-narratives/
1•gmays•27m ago•0 comments

Car Sunroofs Keep 'Spontaneously' Exploding–and the Problem Is Getting Worse

https://www.wsj.com/business/autos/car-sunroofs-keep-spontaneously-explodingand-the-problem-is-ge...
2•bookofjoe•29m ago•1 comments

Why Some Image Conversions Come Out Blurry or Tiny

https://heic.frame-fix.workers.dev/
3•Hackergeist•29m ago•0 comments

How to combine exercise with video games

https://economist.com/science-and-technology/2026/08/28/how-to-combine-exercise-with-video-games
1•andsoitis•30m ago•0 comments

The Monkey Selfie Copyright Dispute

https://en.wikipedia.org/wiki/Monkey_selfie_copyright_dispute
3•busymom0•31m ago•0 comments

Gitea/Forgejo and Neovim

https://github.com/emrearmagan/atlas.nvim/tree/feat/gitea-forgejo
2•emrearmagan•31m ago•1 comments

Lock

https://lock-app.fr/
2•austinallegro•32m ago•0 comments

Laurie Anderson's next manuscript to be locked away for 88 years

https://www.theguardian.com/books/2026/aug/29/laurie-anderson-manuscript-88-years-future-library-...
3•ohjeez•39m ago•0 comments

Why your boss doesn't seem to care about your tech career anymore

https://www.businessinsider.com/tech-managers-career-development-ai-great-flattening-2026-8
6•RoadieRoller•40m ago•6 comments

Character Recognition Chip Tapeout

https://twitter.com/kenchangh/status/2094174553237062070
1•kenchangh•41m ago•0 comments

Could a Computer Scientist Build a Brain?

https://medium.com/@smazumder_20424/could-a-computer-scientist-build-a-brain-425ac8a09d03
1•smazumder05•52m ago•1 comments

Debian community allows contributors to use AI

https://www.theregister.com/ai-and-ml/2026/08/30/debian-votes-to-let-contributors-code-with-ai/52...
1•joebuckwilliams•53m ago•1 comments

Running DuckDB's JDBC Driver in a GraalVM Native Image

https://foojay.io/today/running-duckdbs-jdbc-driver-in-a-graalvm-native-image/
2•rowbin•54m ago•0 comments

Format.js: Industry-standard internationalization libraries for JavaScript

https://formatjs.github.io/
2•doener•58m ago•0 comments

Show HN: Hide the Mac menu bar or clock, dynamically synced w focus (DND)

https://github.com/dotcomjack/nocturne
1•dotcomjack•1h ago•1 comments

The Defense-Tech Bubble Is Headed for Consolidation

https://foxandlion.pub/analysis/defense-tech-bubble-is-headed-for-consolidation
10•agrantic•1h ago•1 comments

FreeToken to Speed Up Moe on low VRAM

https://www.youtube.com/watch?v=8n4Uo47CadY
1•gitowiec•1h ago•0 comments

AWS mumbles about its cost-busting networking tech when it should be shouting

https://www.theregister.com/networks/2026/08/29/aws-mumbles-about-its-cost-busting-networking-tec...
6•joebuckwilliams•1h ago•1 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).