frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•8mo 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•8mo 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•8mo 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: Repomance: A Tinder style app for GitHub repo discovery

https://apps.apple.com/us/app/repomance/id6756920720
1•masterpos•37s ago•0 comments

How the age of motoring shaped our modern world

https://www.bbc.com/news/articles/c62d5wg4lypo
1•Stratoscope•40s ago•0 comments

NASA to Develop Lunar Reactor by 2030

https://www.nasa.gov/news-release/nasa-department-of-energy-to-develop-lunar-surface-reactor-by-2...
1•ghostoftiber•1m ago•0 comments

Generative Video Compression: 0.01% Compression Rate for Video Transmission

https://www.alphaxiv.org/overview/2512.24300v1
1•ksec•2m ago•0 comments

Gamers Overwhelmingly Hate Gen AI in Games, Major Industry Report Finds

https://wjamesau.substack.com/p/gamers-overwhelmingly-hate-gen-ai
1•SLHamlet•2m ago•0 comments

What Is Maintenance, Anyway?

https://blog.rust-lang.org/inside-rust/2026/01/12/what-is-maintenance-anyway/
1•weinzierl•2m ago•0 comments

Show HN: 'Irrational' Tools – Perception-first color/image utilities

https://irrationaltools.com/color-palette-generator/
1•piyush_soni•2m ago•0 comments

AI Can't Touch These Skilled Trade Jobs. If Only Enough Humans Would Fill Them

https://www.wsj.com/lifestyle/careers/ai-cant-touch-these-skilled-trade-jobs-if-only-enough-human...
2•thm•4m ago•0 comments

Native ZFS VDEV for Object Storage (OpenZFS Summit)

https://www.zettalane.com/blog/openzfs-summit-2025-mayanas-objbacker.html
1•suprasam•5m ago•0 comments

Global AI computing capacity is doubling every 7 months

https://epoch.ai/data-insights/ai-chip-production
1•gmays•6m ago•0 comments

Protobuf Has LSP Support

https://buf.build/blog/protobuf-lsp
1•g0xA52A2A•8m ago•0 comments

Almost 7 Signs That Your JavaScript Project Is Legacy

https://devops.com/almost-seven-signs-that-your-javascript-project-is-legacy/
2•ViktoriiaYarosh•10m ago•0 comments

Show HN: Connect Claude AI to iMessage/WhatsApp via Poke MCP

https://github.com/andrexibiza/claude-mcp-poke
1•andrexibiza•10m ago•0 comments

The convergence of AI and data streaming – Part 1: The coming brick walls

https://www.redpanda.com/blog/convergence-ai-data-streaming-part-1
1•PeterCorless•10m ago•0 comments

Fuzzing an eBPF Implementation in Rust

https://secret.club/2022/05/11/fuzzing-solana.html
2•fanf2•13m ago•0 comments

Anatomy of a great product update

https://personabox.app/blog/anatomy-of-a-product-update
1•mpc75•13m ago•0 comments

Jeff Bezos hopes that you'll give up your PC to rent one from the cloud

https://www.windowscentral.com/artificial-intelligence/jeff-bezos-says-the-quiet-part-out-loud-be...
2•_____k•15m ago•1 comments

Why Google Gemini looks poised to win the AI race over OpenAI

https://www.theverge.com/ai-artificial-intelligence/861863/google-gemini-ai-race-winner
1•speckx•16m ago•0 comments

Show HN: Cloud Code – Launch coding agents via API

https://cloud-code-chi.vercel.app
1•thymathgeek•17m ago•0 comments

Architecture discovery in Riemannian neural fields

https://www.researchgate.net/publication/399760434_STRUCTURED_KNOWLEDGE_ACCUMULATION_GEODESIC_LEA...
1•quantiota•19m ago•1 comments

Navigating with Starlink-Signals in GPS-Denied Environments

https://xxtomcooperxx.substack.com/p/navigating-with-starlink-signals
1•jnsaff2•20m ago•0 comments

Show HN: Tabstack – Browser infrastructure for AI agents (by Mozilla)

3•MrTravisB•21m ago•0 comments

Running cheap and crappy USB hard drives in RAID0 is indeed a terrible idea

https://ounapuu.ee/posts/2026/01/14/raid0/
2•speckx•22m ago•0 comments

How to Use LLMs for Continuous, Creative Code Refactoring

https://thenewstack.io/how-to-use-llms-for-continuous-creative-code-refactoring/
1•rbanffy•22m ago•0 comments

Beijing tells Chinese firms to stop using US and Israeli cybersecurity software

https://www.yahoo.com/news/articles/exclusive-beijing-tells-chinese-firms-094036030.html
2•jmsflknr•23m ago•0 comments

How to avoid dynamic linking of Steam's client library using a old trick

https://nullonerror.org/2025/06/03/how-to-avoid-dynamic-linking-of-steam-s-client-library-using-a...
1•delduca•23m ago•0 comments

How to Stand Out When Every AI Product Promises the Same Magic

https://toolsfortech.substack.com/p/how-to-stand-out-when-every-ai-product
1•eh_tk•27m ago•0 comments

Show HN: A kids' math app without dark patterns

https://playlumi.app/
1•matheusml•27m ago•0 comments

Can AI Generate New Ideas?

https://www.nytimes.com/2026/01/14/technology/ai-ideas-chat-gpt-openai.html
1•lateforwork•28m ago•0 comments

Molecular bio-researcher, lifespan elongation

1•vikmarec•29m ago•0 comments