frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Renters' Rights Act Information Sheet 2026 [pdf]

https://assets.publishing.service.gov.uk/media/69bc04b8f7b1c24d8e23ce60/The_Renters__Rights_Act_I...
1•susam•1m ago•0 comments

Splash Canvas

https://artsandculture.google.com/experiment/splash-canvas/vQFCtQB7FDnYkA?hl=en
1•charlieirish•1m ago•0 comments

Bruno: An AI Product Manager for Scientists

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DApsytO0P2P
1•eamag•2m ago•0 comments

AI companies are throwing museums a lifeline. What do they want in return?

https://www.ft.com/content/998152e8-90cd-4d95-ae43-e07b773ab943
1•thm•3m ago•0 comments

The banana as we know it is in trouble

https://www.wbur.org/cognoscenti/2026/07/10/bananas-fungus-fwb-panama-disease-fwb-ethan-gilsdorf
1•geox•3m ago•0 comments

Satsagen – turn popular SDR transceivers into VNA, spectrum analyzer and more

https://www.albfer.com/en/2020/02/21/satsagen-2/
1•yesturi•4m ago•0 comments

GeoLibre – Lightweight Open-Source GIS Platform

https://github.com/opengeos/GeoLibre
2•wertyk•5m ago•0 comments

Antiuniversity Now

https://antiuniversity.org/
1•robtherobber•5m ago•0 comments

Python Is So Slow. Can Julia Solve the Two-Language Problem?

https://www.wired.com/story/python-is-so-slow-can-julia-solve-the-two-language-problem/
1•AndrewDucker•5m ago•0 comments

In Conversation with Chris Engelsman from European Sleeper

https://back-on-track.eu/in-conversation-with-chris-engelsman-from-european-sleeper/
2•robin_reala•6m ago•0 comments

Musk Ate His Words on Anthropic. Follow the Money

https://mrkt30.com/musk-ate-his-words-on-anthropic-follow-the-money/
1•emsidisii•6m ago•0 comments

States to Challenge Paramount-Warner, Larry Ellison Lashes Out Wildly

https://www.thebignewsletter.com/p/monopoly-round-up-states-to-challenge
2•chmaynard•6m ago•0 comments

Is the EU Becoming a Banana Republic with Chat Control?

https://mrkt30.com/is-the-eu-becoming-a-banana-republic-with-chat-control/
1•emsidisii•7m ago•0 comments

Why Reading Matters

https://calnewport.com/why-reading-matters/
1•ingve•9m ago•0 comments

Social media limits are coming for teens across Europe

https://www.theverge.com/tech/964565/eu-children-social-media-online-safety-rules
1•vrganj•9m ago•0 comments

Show HN: UATC-Closed-loop VRAM control and dynamic data pruning for LLM training

https://github.com/sajjaddoda72-design/UATC
1•L_u_u_6•11m ago•0 comments

Billionaire exodus? California drew 10x more venture capital than any state

https://finance.yahoo.com/technology/ai/articles/billionaire-exodus-california-drew-10-100000589....
3•smurda•12m ago•0 comments

Loam – AI hiring for early-stage founders

https://www.hireloam.com/
1•benhartley•12m ago•0 comments

Anthropic Moved the Fable Deadline Again

https://www.vincentschmalbach.com/fable-july-19-extension/
2•vincent_s•16m ago•0 comments

An Epistemic Audit for Existential Risks from AI

https://www.lesswrong.com/posts/aHJ8MkPTWPDnuFLRL/an-epistemic-audit-for-existential-risks-from-ai
1•joozio•16m ago•0 comments

White House to rally utilities, data centers over AI power costs

https://www.reuters.com/legal/litigation/white-house-rally-utilities-data-centers-over-ai-power-c...
1•adithyaharish•17m ago•0 comments

DiscoMCP – Turn an unknown MCP into a reusable operational skill for AI agents

https://github.com/ieranama/discomcp
1•inigoerana•19m ago•0 comments

Saws, Sewing Machines and Telescopes: Things on Loan from Your Library

https://www.kqed.org/news/12085382/saws-sewing-machines-and-telescopes-the-surprising-things-on-l...
3•agnosticmantis•19m ago•0 comments

Show HN: Sixfold – A quick to play word game

https://sixfold.pwheslop.com
1•pwheslop•22m ago•0 comments

Your Data built the AI boom – but Big Tech is pocketing 100% of the equity

https://www.marketwatch.com/story/your-share-of-the-ai-wealth-is-a-right-not-a-handout-here-is-ho...
2•robtherobber•25m ago•0 comments

Firefox will soon start releasing new versions every two weeks

https://www.neowin.net/news/mozilla-firefox-to-follow-google-chrome-microsoft-edge-with-new-relea...
3•bundie•27m ago•0 comments

Show HN: All the Government's 385,000 pages of UFO files to date

https://hypergrid.systems/war.gov-ufo-viewer/microfilm5
2•keepamovin•29m ago•1 comments

I built an iOS app that photographs your pantry and tells you what you can cook

https://apps.apple.com/us/app/simmerz/id6767691610
1•khhuff06•30m ago•0 comments

Doing things right is a lonely craft

https://en.andros.dev/blog/d0d251b2/doing-things-right-is-a-lonely-craft/
2•andros•33m ago•0 comments

The Un-Ice Age

https://www.earthdata.nasa.gov/news/feature-articles/un-ice-age
2•thunderbong•33m 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).