frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Has America crossed the asshole threshold?

https://thegrimhistorian.substack.com/p/has-america-crossed-the-asshole-thresholdcc
1•praptak•18s ago•0 comments

Entertainment Breakdown: Medium's Surging Pop-Culture Publication

https://medium.com/theentertainmentbreakdown/entertainment-breakdown-mediums-surging-pop-culture-...
1•raynchad•1m ago•1 comments

Freedom of Thought: The Fast-Growing Medium Publication That's Here to Stay

https://medium.com/freedomofthought
1•raynchad•3m ago•1 comments

Ask HN: Am I the only one getting so many cursor ads?

1•alexander2002•6m ago•0 comments

JSON Feed Version 1.1

https://www.jsonfeed.org/version/1.1/
1•robalni•6m ago•0 comments

Ok that's a better RPi project – Lego submarine [video]

https://www.youtube.com/shorts/2U5XBuQAHpA
1•lifeisstillgood•10m ago•0 comments

Typewriter Art [video]

https://www.youtube.com/shorts/gEoj6zURU6c
1•lifeisstillgood•14m ago•0 comments

Estonia, the Country of the Fit and the Wit

https://optimizedbyotto.com/post/estonia-well-governed-country/
1•jruohonen•20m ago•0 comments

Falling in and Out of Love with Esperanto

https://www.theguardian.com/education/2026/jul/31/falling-in-and-out-of-love-with-esperanto
1•theanonymousone•26m ago•0 comments

RowLoom – clean up messy CSVs, no signup for a one-off file

https://rowloom.com/
1•tzandarica•26m ago•0 comments

EVE Online but for Hermes and OpenClaw agents: MMORPG your agents can play

https://github.com/shehryarsaroya/agent-eve
1•runrunlobster•27m ago•1 comments

Hawaii's Bake Stands

https://www.310networks.com/posts/hawaiis-bake-stands/
1•kookster310•29m ago•0 comments

Show HN: Bor – Open-source policy management for Linux desktops

https://getbor.dev/blog/2026-08-02-bor-v080-release/
1•eniac111•35m ago•0 comments

I Built Handysuite as a Native Apple App (and Skipped Cross-Platform)

https://medium.com/@chanaka3d/why-i-built-handysuite-as-a-native-apple-app-and-skipped-cross-plat...
1•chanaka3d•39m ago•0 comments

AirLLM: Inference 2.8T Kimi K3 on a single 4GB GPU

https://github.com/lyogavin/airllm
1•maxloh•40m ago•0 comments

Ask HN: When will ChatGPT Voice be able to control my phone?

1•spapas82•52m ago•0 comments

A daily estimation game where the crowd's answer fights an AI

1•holdthelineworl•53m ago•0 comments

The time filter in Google Search broke a few days ago

https://mastodon.online/@mwichary/117023736804129342
4•latexr•53m ago•3 comments

AGI Singer: Buddy, I Need an AGI Handover Framework

https://medium.com/@miho999lv/agi-singer-buddy-i-need-an-agi-handover-framework-7253cafb220e
1•miho999lv•56m ago•0 comments

EU Icons for labelling AI-generated content – Shaping Europe's digital future

https://digital-strategy.ec.europa.eu/en/policies/eu-icons-labelling-ai-generated-content
2•robert-boehnke•1h ago•0 comments

Belladonna of Sadness (1973)

https://www.imdb.com/title/tt0071203
2•aljgz•1h ago•1 comments

Tesla Spyware

https://ma.tt/2026/07/tesla-spyware/
3•ms7892•1h ago•0 comments

Don't replicate data over webhooks. SCROLL

https://welidev.github.io/scroll/
1•weli•1h ago•1 comments

POV: An AI replaced your job this morning [video]

https://www.youtube.com/watch?v=k35i0o-b8sI
1•Animats•1h ago•1 comments

The Claude Code plugin marketplace has no price field

https://www.promptreceipts.com/blog/claude-code-plugin-marketplace-no-price-2026
1•pwsj•1h ago•0 comments

What Happens When Frustrated Machines Talk to Each Other?

https://medium.com/towards-artificial-intelligence/what-happens-when-frustrated-machines-talk-to-...
1•dexmac221•1h ago•1 comments

Running a 35B LLM at 128K Context, Full Speed, on €870 of Used Hardware

https://medium.com/ai-advances/running-a-35b-llm-at-128k-context-full-speed-on-870-of-used-hardwa...
1•dexmac221•1h ago•0 comments

Adima AI: The Future of AI Enhancement

https://www.aiimageupscale.com/ai-image-upscaler-pc
1•JuekMorningstar•1h ago•0 comments

Every new UK home should have air conditioning, say Liberal Democrats

https://www.theguardian.com/environment/2026/jul/26/every-new-home-should-have-air-conditioning-s...
1•edward•1h ago•1 comments

Ginger hair portraits show unexpected 'golden thread' connecting Americans

https://www.bbc.co.uk/news/articles/ce97nyz4rvmo
2•mellosouls•1h ago•1 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).