frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: A small side project for even colour scales

https://colours.viesual.net/
1•vie00001•4m ago•0 comments

Chat is the wrong shape for curiosity, so I made it branch

https://www.echohive.ai/drift
1•echohive42•4m ago•0 comments

AI models keep posting screenshots showing sensitive data from tech companies

https://www.theregister.com/ai-and-ml/2026/09/29/ai-models-keep-posting-screenshots-showing-sensi...
1•Betelbuddy•4m ago•0 comments

Coming Soon: Our 2026 List of Climate Tech Companies to Watch

https://www.technologyreview.com/2026/09/29/1145183/2026-climate-tech-companies-to-watch-preview/
1•joozio•5m ago•0 comments

ChatGPT's new plan costs $500 a month

https://www.businessinsider.com/chatgpt-new-plan-pro-500-cost-compute-allowance-2026-9
1•giosch•5m ago•0 comments

GLM 5.3 flash on AMD GPUs 670 tok/s

https://twitter.com/runinfrai/status/2105186912634057086
2•OsamaJaber•9m ago•0 comments

Long-term nuclear waste warning messages

https://en.wikipedia.org/wiki/Long-term_nuclear_waste_warning_messages
1•johnnyApplePRNG•10m ago•0 comments

Leela Chess Zero – Self-Learning Neural Network

https://lczero.org/
1•modinfo•11m ago•0 comments

Operational HPC lessons learnt training the Tessera geospatial foundation models [pdf]

https://www.cl.cam.ac.uk/~avsm2/tessera-hpc-report-20260922.pdf
1•matt_d•16m ago•0 comments

Caisi Cyber Evaluations

https://github.com/usnistgov/caisi-cyber-evals
1•soltanov•17m ago•0 comments

All Watched over by Machines of Loving Grace

https://www.readingdesign.org/all-watched-over-by-machines
2•sayamss•21m ago•2 comments

New Frontiers

https://www.proximal.ai/blog/new-frontiers/
1•doppp•21m ago•0 comments

Six Flags Magic Mountain retires X2 roller coaster amid brain injury lawsuits

https://apnews.com/article/six-flags-x2-roller-coaster-lawsuits-injuries-225c195a3549fee3637eed99...
1•lode•21m ago•0 comments

Postgres with QUIC

https://blogs.lupyd.com/blog/postgres-with-quic/
2•tenesripranav•22m ago•0 comments

CAISI's Assessment of Z.ai's GLM-5.3 Cyber Capabilities

https://www.nist.gov/news-events/news/2026/09/caisis-assessment-zais-glm-53-cyber-capabilities
1•soltanov•23m ago•0 comments

BrainTech

1•yashmobarsa•24m ago•0 comments

State of the (Tagged) Union Address by Andrew Kelley [video]

https://www.youtube.com/watch?v=zwi5b5xSsKA
2•signa11•25m ago•0 comments

What do you want from AI?

https://www.anthropic.com/research/your-thoughts-on-ai
1•dgfl•29m ago•1 comments

Show HN: Anxiety Checklist – 3 years of itterate with no success yet

https://anxietychecklist.com/
1•seobuddy•31m ago•0 comments

Lightweight Resilient Recursive Parsing

https://andraskovacs.github.io/posts/2026/09/resilient-parsing/
2•matt_d•34m ago•0 comments

Panthalassa's Floating, Wave-Powered Data Centre Technology

https://sustainabilitymag.com/news/panthalassa-the-floating-wave-powered-data-centre-unicorn
1•galaxyLogic•41m ago•0 comments

Salesforce acquires Listen Labs, potentially for $2B

https://www.swedishtechnews.com/swedish-founded-customer-research-platform-listen-labs-is-being-a...
1•imartin2k•49m ago•0 comments

Hiring a Founding CTO

https://shieldailabs.com
2•rafaelsmadja•51m ago•2 comments

Researchers develop wallpaper that generates power

https://www.binghamton.edu/news/story/6491/wallpaper-that-generates-power-binghamton-university-r...
2•geox•53m ago•0 comments

Pencils Down, Eyes Open: A Rails Developer After Rails World

https://caio.ca/blog/pencils-down-eyes-open-rails-world
1•signa11•53m ago•0 comments

Interferometric Synthetic Aperture Radar Drone

https://hforsten.com/interferometric-synthetic-aperture-radar-drone.html
1•Teever•55m ago•0 comments

Show HN: Kasora – Simulate your finances month by month, in-browser, no sign-up

https://kasora.app
3•mitenmit•57m ago•0 comments

Repeated VM Escapes by GPT-5.6-Cyber Based Agents

https://www.infoq.com/news/2026/09/agent-escape-vm/
1•gizzlon•58m ago•0 comments

Dirty Optimization Secrets (C for Playdate)

https://devforum.play.date/t/dirty-optimization-secrets-c-for-playdate/23011
2•signa11•59m ago•0 comments

FineKo – Three KOReader plugins for metadata, quotes and covers

https://github.com/raelales/FineKo
2•RaelAles•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).