frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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).

The Future Belongs to the Weird

https://essays.georgestrakhov.com/weird/
1•georgestrakhov•54s ago•0 comments

Learning Vision-Driven Reactive Soccer Skills for Humanoid Robots

https://www.science.org/doi/10.1126/scirobotics.aed1152
1•realysy•2m ago•0 comments

Aggregating the Aggregators

https://paul.tinypost.blog/aggregating-the-aggregators
1•rdmuser•2m ago•0 comments

Six historic volcanic eruptions changed the world and history

https://knowablemagazine.org/content/article/physical-world/2026/volcanoes-that-made-history
1•dp-hackernews•3m ago•0 comments

Ask HN: What's the best-managed open source repo you've seen on GitHub?

1•kacperlukawski•6m ago•0 comments

The Observability Pain Cycle

https://nikola-petkovic.com/blog/2026/08/07/observability-pain-cycle/
1•nikola_petkovic•6m ago•0 comments

Self – The Structured Executable and Linkable Format

https://github.com/fzakaria/selfdb
1•gjvc•8m ago•0 comments

Show HN: Reverse-engineered Half-Life's 2001 WON launcher with LLM agents

https://github.com/oxiKKK/re-goldsrc-won-launcher-1792
1•oxi113•10m ago•0 comments

Show HN: One AWS Bill Went from Almost $8k a Month Toward $6k

https://greenops.cloud/blog/blog-cost-drop-8k-to-6k
1•spidgorny•12m ago•0 comments

Wikipedia globally blacklisted archive.today after DDoS and snapshot tampering

https://gyrovague.com/2026/06/24/archive-yesterday-an-empirical-study-of-the-streisand-effect/
2•salahadawi•15m ago•0 comments

We replaced our ledger with two functions

https://river.com/content/we-replaced-our-ledger-with-two-functions
2•alexmolas•15m ago•0 comments

Ask HN: What have you reverse engineered with LLMs recently?

1•trencedamp•17m ago•0 comments

Emotional Diversification

https://www.lifestyleintegrity.com/blog/emotional-diversification
1•kiyanwang•17m ago•0 comments

Show HN: Same – I built a toy to see what the world has in common

https://same.imelabs.co.uk
1•wrams•19m ago•0 comments

Bolt Graphics' Advanced GPU to Take on Nvidia – Architosh

https://architosh.com/2026/07/bolt-graphics-advanced-gpu-to-take-on-nvidia/
1•rbanffy•20m ago•0 comments

Responsibility Is Taken Before It Is Given

https://lalitm.com/responsibility-is-taken-before-it-is-given/
1•kiyanwang•20m ago•0 comments

Cursiva is an open-source tool to compile ATS LaTeX resumes with LangGraph

https://www.cursiva.se/
1•heishi•20m ago•0 comments

Can an LLM price a World Cup match better than the market (and make money)?

https://christian.bock.bio/posts/frontier_xg_worldcup/
1•Pseudomanifold•20m ago•0 comments

The sorry state of SKILL distribution

https://blog.trailofbits.com/2026/06/03/the-sorry-state-of-skill-distribution/
1•michael-sumner•20m ago•0 comments

Show HN: Live preview/render Go templates with custom data

https://github.com/vividvilla/gotp
1•v512•22m ago•0 comments

Show HN: Douze – turn any website into MCP tools from the browser session

https://github.com/jamalavedra/douze
1•jamalavedra•23m ago•0 comments

Photon Gas

https://en.wikipedia.org/wiki/Photon_gas
1•maxall4•25m ago•0 comments

Hiding a Prompt in a Tokenizer

https://stephantul.github.io/blog/prompt/
1•stephantul•30m ago•0 comments

Startup Sells Synthetic Influencers Manipulates Social Media as a Service (2025)

https://www.404media.co/a16z-backed-startup-sells-thousands-of-synthetic-influencers-to-manipulat...
1•Bluestein•30m ago•0 comments

Inside The Fake Copyright Racket Silencing News Outlets

https://www.occrp.org/en/news/i-terminated-this-channel-inside-the-fake-copyright-racket-silencin...
1•robtherobber•31m ago•0 comments

Dactyl – Build real iOS apps just by describing them

https://dactyl.dev/
3•losfair•33m ago•0 comments

Ask HN: When will Trump impose tariffs on semiconductors from Asia?

2•roschdal•33m ago•0 comments

Fast drilldown dashboards from a single Parquet file

https://www.hamiltonulmer.com/customer-dashboards-r2-hyparquet/
2•v3gas•33m ago•0 comments

Ateegnas, An AI native Data Annotation tool.

https://ateegnas.com
1•Manas2231•34m ago•1 comments

How LLMs remember, schedule, and stream tokens

https://ssenthilnathan3.github.io/blog/kutty-vllm/
2•nathaah3•34m ago•0 comments