frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•7mo 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•7mo 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•7mo 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: Footywhoops – A real-time audio pattern generator built in Go

https://github.com/system32-ai/footywhoops
1•debarshri•1m ago•0 comments

I'm Kenyan. I Don't Write Like ChatGPT. ChatGPT Writes Like Me

https://marcusolang.substack.com/p/im-kenyan-i-dont-write-like-chatgpt
2•florian_s•4m ago•0 comments

Just – a handy way to save and run project-specific commands

https://github.com/casey/just
1•vismit2000•6m ago•0 comments

Designing space systems with integrated FDIR strategies

https://blog.satsearch.co/2025-12-15-designing-space-systems-with-integrated-fdir-strategies-with...
1•kartikkumar•7m ago•0 comments

I built a remote MCP server so Claude can access my Whoop data from my phone

https://medium.com/@yuriynos/from-screenshots-to-api-a-remote-mcp-server-for-whoop-that-works-on-...
1•yuriy_nos•9m ago•0 comments

Show HN: 0xFeed – Filtering tech news noise with GPT-4o

https://www.0xfeed.dev/
1•giovanella•13m ago•1 comments

Show HN: Portal – Expose localhost to the public domain with one command

https://github.com/gosuda/portal
1•sjc02183•15m ago•0 comments

GitHub Actions CPU performance benchmarks

https://runs-on.com/benchmarks/github-actions-cpu-performance/
3•nkko•16m ago•0 comments

A Multimedia Sketchpad

https://beyondloom.com/blog/sketchpad.html
1•peterhajas•17m ago•0 comments

The Art of Lee Fitzgerald: The Expanse

https://www.patreon.com/posts/85936022
1•mooreds•17m ago•0 comments

Largest U.S. Recycling Project to Extend Landfill Life for Virginia Residents

https://ampsortation.com/articles/largest-us-recycling-project-spsa
1•mooreds•18m ago•0 comments

Simplify GPU Programming with Nvidia CUDA Tile in Python – Nvidia Technical Blog

https://developer.nvidia.com/blog/simplify-gpu-programming-with-nvidia-cuda-tile-in-python/
1•rbanffy•19m ago•0 comments

Everybody but Nvidia and TSMC Has to Make It Up in Volume with AI

https://www.nextplatform.com/2025/12/12/everybody-but-nvidia-and-tsmc-has-to-make-it-up-in-volume...
1•rbanffy•19m ago•0 comments

The Osborne Computer Corporation – By Bradford Morgan White

https://www.abortretry.fail/p/the-osborne-computer-corporation
1•rbanffy•20m ago•0 comments

British Airways fears a future where AI agents choose flights

https://www.theregister.com/2025/12/13/british_airways_fears_a_future/
1•01-_-•22m ago•0 comments

Effects of Vegetable and Fruit Juicing on Gut and Oral Microbiome Composition

https://www.mdpi.com/2072-6643/17/3/458
1•manidoraisamy•25m ago•0 comments

Nvidia details new software that enables location tracking for AI GPUs

https://www.tomshardware.com/pc-components/gpus/nvidia-details-new-software-that-enables-location...
2•01-_-•26m ago•0 comments

Bondi Beach shooting: How the tragedy unfolded

https://www.reuters.com/graphics/AUSTRALIA-CRIME/byprbxmgxpe/
2•giuliomagnifico•27m ago•0 comments

Show HN: Webhook Tester – RequestBin-style webhooks inbox built on Cloudflare

https://eventdock.app/tools/webhook-tester/
1•kidsil•28m ago•0 comments

War and Peace is a honking doorstopper

https://twitter.com/patrickc/status/2000526043250094483
1•tapanjk•29m ago•0 comments

Show HN: I Built an UI Library for Non CSS Developers – OgBlocks

https://ogblocks.dev/
1•ogkaran•31m ago•0 comments

Why digital designers should appreciate the luxury of the medium

https://mikajovicic.com/writing/digital-medium-can-be-infinitely-improved/
1•violinar•32m ago•0 comments

Jolla – The Other Half Returns – Community Innovation Program

https://forum.sailfishos.org/t/the-other-half-returns-community-innovation-program/26011
1•embedding-shape•33m ago•0 comments

Dell and Lenovo may limit mid-range laptops to 8GB RAM because of memory prices

https://www.notebookcheck.net/Dell-and-Lenovo-may-limit-mid-range-laptops-to-8GB-DDR5-RAM-in-resp...
3•akyuu•44m ago•2 comments

The "Hardware Friction Map": Why technically superior architectures fail to ship

https://lambpetros.substack.com/p/the-hardware-friction-map
3•speiroxaiti•47m ago•1 comments

GCC Developers Considering Whether to Accept AI/LLM-Generated Patches

https://www.phoronix.com/news/GCC-To-Consider-LLM-Patches
2•turrini•48m ago•0 comments

Why Americans Hate the Media (1996)

https://www.theatlantic.com/magazine/archive/1996/02/why-americans-hate-the-media/305060/
3•bell-cot•49m ago•0 comments

Built a new version of HN/Reddit

2•upvotenow•50m ago•1 comments

2025 Word of the Year: Slop

https://www.merriam-webster.com/wordplay/word-of-the-year
3•djoldman•51m ago•0 comments

Show HN: NeuroIndex – Hybrid AI memory with vectors and semantic graphs

https://github.com/Umeshkumar667/neuroindex
1•umesh667•52m ago•0 comments