frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: iOS widgets that read your solar inverter over local Modbus TCP

https://danielszlaski.com/glance-for-solis.html
1•danielszlaski•20s ago•0 comments

Surprising lessons from my research scientist job search

https://yongzx.github.io/blog/2026/06/24/job-search/
1•gmays•1m ago•0 comments

Record ticket sales for Bayeux Tapestry exhibition

https://www.museumsassociation.org/museums-journal/news/2026/07/record-ticket-sales-for-bayeux-ta...
1•speckx•1m ago•0 comments

Truth is not a direction: a Tarski attack on LLM probes

https://abeljansma.nl/2026/07/10/truth-is-not-a-direction.html
1•abelaer•2m ago•0 comments

Mojo 101: From Syntax to GPU Programming [Session 1]

https://www.youtube.com/watch?v=1Jqp0BheoEQ
1•mdunnoconnor•2m ago•0 comments

What is Secure-by-design? past and future

https://isecurebydesign.com/news/what-is-secure-by-design
1•Alistair99•3m ago•0 comments

Show HN: Systory – Architecture diagrams with animated request flows

https://systory.tmdevlab.com
1•thiagomendescwb•4m ago•0 comments

"KeyMe Locksmiths" places false Google Maps business locations around cities

https://remark.ing/rob/rob/-/KeyMe-Locksmiths-places-false
1•koch•4m ago•0 comments

An autonomous research system that measures how often it fools itself

https://github.com/slow4cyl/prometheus/
2•sause•5m ago•0 comments

CIA Officers Can Sense the Threat Within

https://www.theatlantic.com/national-security/2026/07/cia-trump-intelligence-survey-gabbard/687865/
2•u1hcw9nx•6m ago•0 comments

Escape from Squircle Jail

https://tyler.io/2026/07/05/escape-from-squircle-jail/
1•herbertl•6m ago•0 comments

Phia Shopping App Claiming Credit for Sales It Didn't Drive

https://www.bloomberg.com/news/articles/2026-07-09/gates-heir-s-shopping-app-took-credit-for-sale...
1•650•7m ago•0 comments

Estonia Won the War on Fentanyl. What Came Next Was Worse

https://www.nytimes.com/2026/07/07/world/europe/estonia-fentanyl-new-drugs.html
1•ChrisArchitect•7m ago•1 comments

A scanning operation on 38 IPs looked like 11,107 across 147 networks

https://honeylabs.net/blog/hunting-your-database-dumps
1•Robbedoes•8m ago•0 comments

Hookami – AI advisor that tells YouTube creators what to film

https://hookami.ai
1•mariustoicescu•9m ago•0 comments

I just made $25K USD with my capybara game built with Claude Code

https://old.reddit.com/r/ClaudeAI/comments/1urzr1q/i_just_made_25k_usd_with_my_capybara_game_built/
1•richbray•9m ago•0 comments

Energy is AI's natural home – but, it's fumbling

https://www.weforum.org/stories/artificial-intelligence/the-energy-sector-should-be-ais-natural-h...
2•speckx•10m ago•0 comments

EU tells Instagram, Facebook to change addictive features or risk fines

https://www.reuters.com/world/eu-tells-instagram-facebook-change-addictive-features-or-risk-fines...
1•1vuio0pswjnm7•11m ago•1 comments

Being lonely taught me how to be me

https://psyche.co/notes-to-self/after-moving-cities-this-book-taught-me-to-enjoy-time-alone
1•herbertl•12m ago•0 comments

Pipe Bitcoin's mempool into Gource and watch blocks settle it live

https://github.com/VitaAI-SCG/one-gpu-lab/tree/main/episodes/14-the-live-tree
1•HASHIRAMA1337•13m ago•0 comments

Cagire: Live Coding in Forth

https://cagire.raphaelforment.fr
1•surprisetalk•14m ago•0 comments

Large Roundup of Section 230 Rulings

https://blog.ericgoldman.org/archives/2026/07/large-roundup-of-section-230-rulings.htm
1•hn_acker•15m ago•1 comments

Show HN: PastPage – Find archived versions of dead links

https://github.com/nabertronic/pastpage
2•nabertronic•16m ago•0 comments

Show HN: Why Your Posture Sucks

https://super-posture--mentionedbyworl.replit.app
1•aykhanstoic•16m ago•0 comments

Global economy could face 50% loss in GDP from climate shocks, say actuaries

https://www.theguardian.com/environment/2025/jan/16/economic-growth-could-fall-50-over-20-years-f...
2•simmerup•17m ago•0 comments

Tell HN: PrimeVue no longer MIT, requires $799 license

1•someguyornotidk•17m ago•0 comments

Food for Agile Thought 552: AI Creates Jobs? Overthinkers, Measuring ≠ Learning

https://age-of-product.com/food-agile-thought-552-ai-creates-jobs/
1•swolpers•19m ago•0 comments

Show HN: Theta, Harness Agnostic Configuration

https://github.com/tamarillo-ai/theta
1•ivanbelenky•19m ago•0 comments

Show HN: Challenge a Friend to Real-Time Multiplayer AI Court Battle – Wram.chat

https://wram.chat
3•revolt2tech•20m ago•0 comments

The Return of Shelf

https://taoofmac.com/space/blog/2026/07/10/1330
2•rcarmo•20m 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).