frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Dictatorship Eval

https://www.dictatoreval.org/
1•enjoyyourlife•2m ago•0 comments

Malanthropomorphism

https://lincoln.swaine-moore.is/writing-about/malanthropomorphism
1•lswainemoore•4m ago•0 comments

Hacker reverses Samsung TV, finds on-board AI listening OpenAI account suspended

https://www.reddit.com/r/antiai/comments/1xdv3e5/hacker_reverse_engineers_his_samsung_tv_and_finds/
1•testing22321•8m ago•0 comments

Show HN: Code Counter Machine a modern analysis of AI driven development costs

https://github.com/insanai/ccm
1•vikrantrathore•10m ago•0 comments

Memory is slow, Disk is fast – Part 3

https://www.bitflux.ai/blog/memory-is-slow-part3/
1•dverlaeckt80•12m ago•0 comments

Real-time streaming with IBM StreamSets

https://www.ibm.com/products/streamsets
1•teleforce•14m ago•0 comments

Show HN: Latch – Make any website usable by AI agents in one line (WebMCP)

https://latch.tools/
1•r0bertini•16m ago•0 comments

Unspoken rules of Japanese body language

https://www.bbc.com/travel/article/20261022-six-gestures-to-learn-before-travelling-to-japan
2•tosh•18m ago•0 comments

Show HN: Pilely – Build and ship web apps within your AI chat

https://pilely.ai/
2•pcpliu•25m ago•0 comments

Advertisers Pull Meta Ads That Had Unwanted AI Glow-Ups

https://www.adweek.com/media/advertisers-pull-meta-ads-that-had-unwanted-ai-glow-ups/
3•thm•30m ago•0 comments

US has for years asked Musk to alter Starlink service in Ukraine, Middle East

https://www.reuters.com/business/autos-transportation/us-has-years-asked-musk-alter-starlink-serv...
3•JumpCrisscross•35m ago•0 comments

Show HN: Xet Server – Host your own models anywhere

https://github.com/guilt/xet-server
2•vkaku•44m ago•0 comments

AWS Continuum for code vulnerabilities is now generally available

https://aws.amazon.com/blogs/aws/aws-continuum-for-code-vulnerabilities-is-now-generally-available/
2•taubek•52m ago•0 comments

LibreSSL 4.4 Released with Faster SHA3, Bug Fixes

https://www.phoronix.com/news/LibreSSL-4.4-Released
2•ksec•56m ago•1 comments

Volkswagen's best-seller has gone electric, will replace the ID.4 and ID.5

https://electrek.co/2026/10/09/volkswagens-best-seller-goes-ev-replace-id-4-images/
3•geox•57m ago•0 comments

Elon Musk Invests $1B in Skydance (New Paramount/Warner Bros Discovery)

https://techcrunch.com/2026/10/22/elon-musk-made-a-1-billion-investment-in-skydance-report-says/
4•ryan_j_naughton•1h ago•0 comments

'Smart Wall' of AI Cameras Is Watching the Border and More Than a Million People

https://www.nytimes.com/interactive/2026/10/22/us/politics/ai-surveillance-cameras-border-mexico....
2•ryan_j_naughton•1h ago•0 comments

Pangram CEO: People believe AI writing is indistinguishable from ours. It's not

https://bigthink.com/science-tech/trust-issues/
1•paulpauper•1h ago•0 comments

OBS Studio 33

https://github.com/obsproject/obs-studio/releases/tag/33.0.0
1•pentagrama•1h ago•0 comments

The current state of new media

https://twitter.com/kramnotmark/status/2113668179788534255/photo/1
1•binarynate•1h ago•1 comments

AOM Sees Rapid AV2 Adoption Across the Ecosystem Just 4 Months After Release

http://aomedia.org/press%20releases/AOMedia-Rapid-AV2-Adoption-Across-the-Video-Ecosystem/
1•ksec•1h ago•0 comments

Welcome to 2030. I own nothing, no privacy, and life's never been better (2016)

https://medium.com/world-economic-forum/welcome-to-2030-i-own-nothing-have-no-privacy-and-life-ha...
2•sssilver•1h ago•0 comments

Elon Musk Acquires $1B Stake in CNN's Parent Company

https://symby.com/news?_cid=101605177&preferredLanguage=en
21•Alien1Being•1h ago•6 comments

Who will become the new mathematicians of Math 2.0?

https://proofsandprompts.com/2026/10/20/who-will-become-the-new-mathematicians-of-math-2-0/
2•the-mitr•1h ago•0 comments

Who Wrote This Byte?

https://fzakaria.com/2026/10/23/who-wrote-this-byte
1•Sighery•1h ago•0 comments

No Pussyfooting (1973)

https://www.discogs.com/master/9824-Fripp-Eno-No-Pussyfooting?srsltid=AYCX9vI4P8C-IiZyut0mu3GJd_l...
2•erottern•1h ago•0 comments

Yab, yet Another Browser

https://yetanotherbrowser.com/#arc
1•nmiv•1h ago•1 comments

Pi, the coding agent, compiled ahead of time to one native executable

https://github.com/opensec-git/Pi-Bolt
2•thunderbong•1h ago•0 comments

Julia Returns to Tiobe's Top 20

https://tech-insider.org/tiobe-index-october-2026-python-julia-rust/
2•sumnole•1h ago•1 comments

Oura sues rival Ultrahuman again, threatening its U.S. smart ring comeback

https://techcrunch.com/2026/10/22/oura-sues-rival-ultrahuman-again-threatening-its-u-s-smart-ring...
4•Brajeshwar•1h 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).