frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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).

Show HN: ArcticKey – Managed Redis (Valkey) Hosted in the EU

https://arctickey.com
1•simskiie•1m ago•0 comments

Ask HN: Is anyone tracking AI traffic to their site? Should we care?

1•ATechGuy•2m ago•0 comments

Bash tool execution failing in Claude Code

https://github.com/anthropics/claude-code/issues/28333
1•sadeshmukh•2m ago•0 comments

Thagomizer

https://en.wikipedia.org/wiki/Thagomizer
1•luu•3m ago•0 comments

A Meta AI security researcher said an OpenClaw agent ran amok on her inbox

https://techcrunch.com/2026/02/23/a-meta-ai-security-researcher-said-an-openclaw-agent-ran-amok-o...
1•isaacfrond•4m ago•0 comments

Archaeologists Use Computer Simulations to Decipher How Romans Played Board Game

https://archaeology.org/news/2026/02/16/archaeologists-use-ai-to-decipher-how-romans-played-board...
1•isaacfrond•4m ago•0 comments

All Software Is Worthless

https://blog.hermesloom.org/p/all-software-is-worthless
1•sigalor•5m ago•0 comments

Undersheet – thread memory for AI agents across platforms

https://github.com/ubgb/undersheet
2•ubgb•5m ago•1 comments

A free Dynamic QR Code generator

https://free-dynamic-qr-generator.com/
1•anithakarri001•6m ago•0 comments

Simple URL shortner in a single binary

https://github.com/scmmishra/dubly
1•shivam-dev•6m ago•0 comments

1Password is increasing their price

https://1password.com/pricing/password-manager
1•pixelpanic360•6m ago•0 comments

A Comprehensive Analysis of Endocrine Disruptors in the Headphones

https://arnika.org/en/news/the-sound-of-contamination-all-analysed-headphones-on-the-central-euro...
3•XzetaU8•8m ago•1 comments

The Looming Taiwan Chip Disaster That Silicon Valley Has Long Ignored

https://www.nytimes.com/2026/02/24/technology/taiwan-china-chips-silicon-valley-tsmc.html
1•u1hcw9nx•8m ago•0 comments

Japan antitrust watchdog raids Microsoft over cloud services concerns

https://asia.nikkei.com/business/technology/japan-antitrust-watchdog-raids-microsoft-over-cloud-s...
1•macleginn•8m ago•0 comments

QOCC – Quantum Observability and Contract-Based Compilation

https://github.com/zerocool26/Quantum-Observability-Contract-Compilation-QOCC-
1•chiengineer•13m ago•1 comments

Ask HN: Why would anyone still use Poetry now that uv exists?

1•s-xyz•14m ago•0 comments

An honest analysis of SpacetimeDB 2.0's insane benchmark results

https://gist.github.com/brandonpollack23/77d4d741e9af56ef3a9fc338f68d2ec6
1•brandonpollack2•17m ago•1 comments

English 2.0: converter for more orthogonal and phonetically pure English

https://github.com/nglibc/english-2.0
1•xphung•19m ago•2 comments

Show HN: Open Plan Annotator – Annotate your agent's plans like a Google doc

https://github.com/ndom91/open-plan-annotator
1•ndom91•22m ago•0 comments

Wayve secures $1.5B to deploy its global autonomy platform

https://wayve.ai/press/series-d/
1•horsellama•23m ago•0 comments

Proworkk

1•Proworkk•24m ago•2 comments

Show HN: A zero-dependency Web Component for Bluesky blog comments

https://github.com/florianschepp/bsky-comments
1•fschepp•26m ago•1 comments

Curl Security Moves Again

https://daniel.haxx.se/blog/2026/02/25/curl-security-moves-again/
1•robin_reala•26m ago•0 comments

Automate your tutorials with playwright and Piper

https://charnley.github.io/blog/2026/02/24/automated-tutorial-as-code-playwright-piper.html
1•KPLauritzen•26m ago•0 comments

Participate in the 100M-row challenge for PHP

https://stitcher.io/blog/100-million-row-challenge
1•moebrowne•28m ago•0 comments

The Slow Death of the Power User

https://fireborn.mataroa.blog/blog/the-slow-death-of-the-power-user/
4•stargrave•33m ago•0 comments

The best tech interview prep tool and blogs

https://interviewgpt.deepchill.app/blogs
1•tiancaioyzy•34m ago•0 comments

GenesisDB on DigitalOcean: One Click, Done

https://www.genesisdb.io/blog/posts/2026-02-24/genesisdb-one-click-digitalocean
4•patriceckhart•35m ago•2 comments

Go's secret weapon: the standard library interface

https://fredrikaverpil.github.io/blog/2025/12/28/gos-secret-weapon-the-standard-library-interfaces/
1•hambes•36m ago•0 comments

Apple's Multibillion-Dollar Push to Make Chips in the U.S. [video]

https://www.youtube.com/watch?v=ktFlaBhpMu8
1•keepamovin•42m ago•0 comments