frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Responsive Is Joining Databricks

https://www.responsive.dev/
1•zX41ZdbW•44s ago•0 comments

MonsterCloud Owner Charged with Wire Fraud in 'No-Ransom' Scheme

https://www.gadgetreview.com/monstercloud-owner-charged-with-wire-fraud-in-no-ransom-scheme
1•PicardManeuver•1m ago•0 comments

Verification was never just about certification

https://christophspiegel.berlin/appendix/when-to-trust-lean
1•c-roux•2m ago•0 comments

Russia is not prepared for the 'data centre war' it started

https://bsky.app/profile/chriso-wiki.bsky.social/post/3mxgtsqzqjs2t
1•leecoursey•2m ago•0 comments

Most US Adults Aren't Ready for AI to Help with Holiday Shopping, Survey Finds

https://www.cnet.com/tech/services-and-software/ai-holiday-shopping-survey/
1•MC995•6m ago•0 comments

French supermarkets suffer refrigerator shutdown after unprecedented cyberattack

https://www.rnz.co.nz/news/world/1865776/french-supermarkets-suffer-refrigerator-shutdown-after-u...
4•billybuckwheat•7m ago•0 comments

The Ballpoint Pen Game Nobody Could Play, So I Built One

https://intelligenttools.co/blog/ink-armada-ballpoint-pen-canvas
1•austinallegro•7m ago•0 comments

Mark Zuckerberg says Meta reached AI 'frontier' and rejects calls for slowdown

https://www.ft.com/content/fca23e77-be57-4d7e-ae61-74ff299e25cb
2•thm•7m ago•0 comments

Use Bun for Shell Scripts

https://blog.iany.me/2026/02/use-bun-for-shell-scripts/
1•ssernikk•7m ago•0 comments

AI is fucking overwhelming man

https://himanshusinghbisht.substack.com/p/ai-is-fucking-overwhelming-man
1•gilfoyle_7•8m ago•0 comments

Anthropic AI Model Goes Rogue, Gives Cops a Fake Tip

https://www.bloomberg.com/news/videos/2026-10-12/anthropic-ai-model-goes-rogue-gives-cops-a-fake-...
2•sbulaev•9m ago•0 comments

I built an AI receipt scanner to track expenses and organize receipts

https://play.google.com/store/apps/details?id=com.usebright.receipt_scanner&hl=en_US
1•khalidelhacheka•9m ago•0 comments

Swarm Intelligence

https://kevinkelly.substack.com/p/swarm-intelligence
1•thm•10m ago•0 comments

Show HN: Nightdrive – Speed Reading While Driving

https://nightdrive.city/
1•elpavohombre•10m ago•0 comments

Show HN: Crowdsource Square Packings

https://square-packing.franciscouzo.com/
1•Franciscouzo•11m ago•0 comments

Show HN: Opus 5.5 made a fully featured Figma clone in 3 hours / 8 prompts

https://www.mana.space/home/rZfbotNWAXegQypmpkzaAPFC6Mp1/Apps/Figma%20Next%20Launch
12•behzadhaghgoo•12m ago•2 comments

Many hands, one yes: a guide to harness engineering

https://faviovazquez.github.io/showtime/harness/
1•faviovazquez•13m ago•0 comments

The Case for Firing Squads

https://www.wsj.com/opinion/the-case-for-firing-squads-a9880cad
1•koolba•13m ago•0 comments

My Reddit AMA on the Law of Web Scraping

https://blog.ericgoldman.org/archives/2026/10/my-reddit-ama-on-the-law-of-web-scraping.htm
2•speckx•13m ago•0 comments

'AI' Is Not a Tool by Rich Hickey

https://gist.github.com/svieira/619d60dea942a8d4498cba3bb6b11c02
2•svieira•16m ago•1 comments

Show HN: I rewrote my website in Swift

https://sindresorhus.com/blog/swift-website
2•mofle•16m ago•0 comments

Show HN: anygrep – semantic search over notes, PDFs and images, on the CPU

https://github.com/kuroko1t/anygrep
1•kuroko1t•16m ago•0 comments

From Plesiochronous to Synchronous

https://computer.rip/2026-10-12-plesiochronous.html
1•Sniffnoy•16m ago•0 comments

Show HN: I bought a bunch of 'smart' devices. AI was able to hack most of them

https://hwrebench.com/
1•Yenrabbit•16m ago•0 comments

The Curve Bends You

https://thezvi.substack.com/p/the-curve-bends-you
2•paulpauper•18m ago•0 comments

My Problem with Omarchy Is What I Like About Arch

https://dayvster.com/blog/my-problem-with-omarchy-is-what-i-like-about-arch/
1•speckx•19m ago•0 comments

Ask HN: Recommend Phones for Elderly?

1•Exoristos•20m ago•0 comments

Odd Lots: How OpenAI's Rogue Model Hacked Hugging Face

https://www.bloomberg.com/news/videos/2026-10-12/odd-lots-how-openai-s-rogue-model-hacked-hugging...
1•rndsignals•20m ago•0 comments

Agent-first design: Bringing UX to the user

https://www.qawolf.com/blog/agent-first-design-bringing-ux-to-the-user
8•jonperl•20m ago•1 comments

VesiroSearch – a performance enhancing Elasticsearch plugin

https://www.vesiro.com
3•cosh91•24m 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).