frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Will Stripe Buy PayPal?

1•cyanregiment•14s ago•0 comments

Hungary to shut down sole nuclear plant as Danube falls to record low

https://www.reuters.com/business/energy/hungarys-paks-nuclear-plant-could-be-powered-down-this-we...
1•geox•2m ago•0 comments

Counter-Based random number generator

https://en.wikipedia.org/wiki/Counter-based_random_number_generator
1•binyu•6m ago•0 comments

Show HN: Interactive Heatsink Area Calculator by Geometric Profile

https://specled.com/en/w/heatsink-profile-area-calculator-by-geometric-profile/
1•Specled•7m ago•0 comments

Demobscene

https://demobscene.com/
1•fatliverfreddy•7m ago•0 comments

Write Amplification Explained

https://everything.explained.today/Write_amplification/
1•ankitg12•7m ago•0 comments

Mosh in a Lift (2012)

https://mosh.org/elevator.txt
1•gavide•8m ago•0 comments

Having fun with oh my pi, DeepSeek-V4-Flash, GPT-5.6 Luna and Antigravity CLI

https://flashblaze.xyz/posts/having-fun-with-omp-deepseek-luna-and-agy/
2•flashblaze•11m ago•0 comments

Yes you can measure engineering

https://www.rubick.com/valuesum-metric/
1•meetpateltech•12m ago•0 comments

Security Flaw Placed 30 Years of DNA Evidence at Risk of Hacking

https://www.wsj.com/tech/cybersecurity/security-flaw-placed-30-years-of-dna-evidence-at-risk-of-h...
1•impish9208•16m ago•1 comments

The Impending, Inescapable Deluge of A.I

https://www.nytimes.com/interactive/2026/07/29/technology/ai-chips-data-center-boom.html
2•bookofjoe•16m ago•1 comments

Show HN: A fixed harness for comparing LLM agent memory systems

https://github.com/AML-memory/agent-memory-leaderboard
1•IreneAI•17m ago•0 comments

VC-backed startups commit more fraud, and researchers think they know why

https://techcrunch.com/2026/07/31/vc-backed-startups-commit-more-fraud-and-researchers-think-they...
1•richardchilders•17m ago•0 comments

Mozilla's Inaugural 'State of Open Source AI' Report Is Here

https://blog.mozilla.org/en/mozilla/mozilla-state-of-open-source-ai-report/
1•nlpnerd•18m ago•0 comments

Stack Trace for Distributed Systems

https://github.com/leandromoreira/distributed-stack-trace/tree/main
1•dreampeppers99•25m ago•0 comments

Claude on Political Compass

https://utopiagov.com/blog/political-compass
1•makosst•28m ago•0 comments

Ask HN: What cloud agents do you use?

1•mopatches•31m ago•0 comments

Cross compiling Swift (including SwiftUI) to WASM

https://github.com/patch-release/patch-swift
2•jasolomon•32m ago•0 comments

Show HN: DFAH-Bench – same agent decision, different tool paths

https://github.com/ibm-client-engineering/output-drift-financial-llms
1•raffisk•32m ago•0 comments

The Triangle Game, from Zero

https://muchmirul.github.io/conjectures/multicolor-ramsey/
1•jdkee•36m ago•0 comments

Thoroughly Understanding C++ ABI

https://ykiko.me/en/articles/692886292/
1•rramadass•37m ago•1 comments

Waymo Bites Passenger

https://www.instagram.com/p/DbGsc_yicao/
6•liamnorm•37m ago•0 comments

Show HN: Turn a Nintendo Joy-Con into a Codex Micro Alternative

https://github.com/Jinjiang/joy-con-codex-micro
1•jinjiang•37m ago•0 comments

China Crosses Energy Milestone as Coal Falls Below 50% of Power

https://financialpost.com/pmn/business-pmn/china-crosses-energy-milestone-as-coal-falls-below-50-...
2•thunderbong•38m ago•0 comments

ImHex: Visualizing Hex Editor for Reverse Engineers, Programmers

https://github.com/WerWolv/ImHex
1•zdw•39m ago•0 comments

Adam Aleksic: Why are people starting to sound like ChatGPT? [video]

https://www.ted.com/talks/adam_aleksic_why_are_people_starting_to_sound_like_chatgpt
4•fagnerbrack•43m ago•1 comments

Ursula K. Le Guin: A Rant About "Technology" (2005)

https://www.ursulakleguin.com/a-rant-about-technology
54•jamesgill•43m ago•14 comments

Finding zombies in our systems: A real-world story of CPU bottlenecks

https://medium.com/pinterest-engineering/finding-zombies-in-our-systems-a-real-world-story-of-cpu...
1•fagnerbrack•44m ago•0 comments

YouTube AI slop prevention targeting known good channels

https://www.youtube.com/watch?v=OX1yHmeLPy8
4•savrajsingh•44m ago•0 comments

Pluralistic: Why businesses lie about AI

https://pluralistic.net/2026/08/01/dare-snot/
3•Brajeshwar•46m 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).