frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How the hard reality of climate change hit Europe's economy this summer

https://www.reuters.com/business/environment/how-hard-reality-climate-change-hit-europes-economy-...
1•alephnerd•56s ago•0 comments

Vladimir Arnold's Rainbow Is a Masterclass in Simplification [video]

https://www.youtube.com/watch?v=ZJH-5LLwWuo
1•surprisetalk•1m ago•0 comments

Website showing form intersections in 3D

https://eyes.training/intersections/
1•mdrzn•3m ago•0 comments

Show HN: HoneyMCP – Deception Layer for MCP Servers, Ghost Tools Act as Honeypot

https://github.com/barvhaim/HoneyMCP
1•bignet•5m ago•0 comments

Reasoning Traces: A New Trick Reveals AI Models' Inner Thoughts

https://www.wired.com/story/a-new-trick-reveals-ai-models-inner-thoughts/
1•smurda•5m ago•0 comments

Show HN: Synapse – a monitoring SaaS shipped with my Claude Code workflow

https://synapse.mdlc.ai
1•grepzero•7m ago•0 comments

The guide to healing your insecure attachment

https://www.pasthepast.com/p/the-ultima-guide-to-healing-your
1•ElysiumAbove•8m ago•0 comments

Vaultwarden Sequence Diagrams

https://app.ilograph.com/demo.ilograph.Vaultwarden/Log%2520In
1•billyp-rva•8m ago•0 comments

How 10,000 American Cities Got Their Names

https://www.wsj.com/us-news/how-10-000-american-cities-got-their-names-a67c625e
1•impish9208•10m ago•1 comments

How the government is using AI to speed up the planning system

https://takes.jamesomalley.co.uk/p/build-gemini-build
1•dgroshev•12m ago•0 comments

Show HN: Replacing HTML/CSS/JS with Rust

https://fui-rs-demo.effindom.dev/
2•zionsati•13m ago•0 comments

Show HN: Reprogram your mind while you vibe code

https://justglow.dev/
1•mikiyas•15m ago•0 comments

The Closure of the Internet: Most Important Social Phenomenon of the Late 2010s

https://arctotherium.substack.com/p/the-closure-of-the-internet
1•nkurz•16m ago•0 comments

Amazon cuts some jobs in its artificial general intelligence unit

https://www.cnbc.com/2026/07/22/amazon-lays-off-some-employees-in-its-agi-unit.html
2•mgh2•20m ago•0 comments

CPU jitter entropy random number generator

https://www.chronox.de/jent/
1•fanf2•20m ago•0 comments

GitHub Custom thread subscriptions are being deprecated

https://github.blog/changelog/2026-08-10-custom-thread-subscriptions-are-being-deprecated/
3•EffrafaxOfWug•21m ago•0 comments

"I Don't Have Anything to Hide", Said the Dude Photographed on the Toilet

https://postcapitalistrobots.substack.com/p/i-dont-have-anything-to-hide-said
1•alejodosr•21m ago•0 comments

71% of CISOs spend 10 hours on board reports

https://www.helpnetsecurity.com/2026/08/10/ciso-board-communication-gap-report/
1•taubek•21m ago•0 comments

Ask HN: How did you teach analog electronics to your kids?

2•felooboolooomba•23m ago•2 comments

AI Horde A free, community-powered generation service

https://stablehorde.net/
1•Bluestein•26m ago•0 comments

How to get AI to generate more ideas by itself

https://bymorning.ai/journal/idea-mode-collapse
1•johnrising•27m ago•0 comments

Charging drones mid-flight with lasers

https://www.eurekalert.org/news-releases/1137218
1•geox•28m ago•0 comments

How fast is C++26's std::hive?

https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
1•joek1301•30m ago•0 comments

Show HN: Sentris – scans your Supabase repo for missing RLS and leaked keys

https://www.sentris.dev/index
1•lucaurti•31m ago•0 comments

WorldClaw – Agentic 3D open-world generation at scale

https://tencent-hunyuan.github.io/Hunyuan3D-WorldClaw/
1•realmoravec•31m ago•0 comments

Show HN: Tesserae, self-hosted dashboards for e-ink panels

https://tesserae.ink/
2•xDaftTurtle•35m ago•2 comments

Jensen: "Nvidia AI Factory Compute Is Becoming an Investable Asset Class"

https://twitter.com/JensenHuang/status/2086934705207959965
2•nlpnerd•36m ago•1 comments

The Waiting Time Paradox, Or, Why Is My Bus Always Late? (2018)

https://jakevdp.github.io/blog/2018/09/13/waiting-time-paradox/
1•downbad_•37m ago•0 comments

GitHub Actions needs OIDC audience constraints

https://blog.yossarian.net/2026/08/10/github-actions-needs-oidc-audience-constraints
1•cimnine•37m ago•1 comments

The mystery of why left-handers are so much rarer (2016)

https://www.bbc.com/future/article/20160930-the-mystery-of-why-left-handers-are-so-much-rarer
1•downbad_•37m 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).