GNU Jitter and GCC: the fun of playing with fire – 2022-03-10 21:32

An ag(e)ing hacker — Luca Saiu's blog

GNU Jitter and GCC: the fun of playing with fire

A few days ago on March 6 I participated in the Binary T00ls Summit online event ( organised by José Marchesi (; a video recording is now available.

My presentation had the ridiculous title GNU Jitter and the illusion of simplicity or Copying, patching and combining compiler-generated code in executable memory or The Anarchist’s guide to GCC or The fun of playing with fire — or, in shortened form, GNU Jitter and GCC: the fun of playing with fire.

This is the official abstract:

GNU Jitter is a generator of portable and efficient language virtual machines; a Jittery VM lies at the heart of GNU poke. Jitter achieves high performance by first machine-generating C code, then compiling the generated code ahead-of-time with GCC, and finally copying, patching and recombining pieces of native code at run time into executable memory. GCC was definitely not designed for this task.
In this talk about the inner workings of Jitter I will show how to coerce the compiler into generating code suitable for run-time replication and how to maintain correctness, without the user noticing, when GCC optimisations play against us. In a task where many have failed before I believe I can now show a recipe for success.

I published a copy of the video recording on the Internet Archive: see You can find a slightly updated copy of my PDF slides on my web site at

I wish to thank José, who gracefully took care of editing all video recordings including mine, and the other participants for their interest.

The Binary T00ls Summit 2022 was a pleasant and interesting event.

— Luca Saiu, 2022-03-10 21:32

binary-t00ls-summit, free-software, gnu, hacking, jitter, myself

Next post Previous post

Go to the main index...
Atom feed All post feeds: Atom 1.0, RSS 2.0.

[my photo]
Luca Saiu

The opinions I express here are my own and do not necessarily reflect the beliefs or policies of my employer, or for that matter of anyone else. In case you felt that the public statement of my thoughts threatened your warm sense of security and your emotional stability, please feel free to leave at any time.

The system does not support user comments and probably never will. Anyway you can contact me if you want to discuss some topic with me. I might update my posts if you provide interesting insights.

Copyright © 2009, 2011-2014, 2017, 2018, 2021, 2022 Luca Saiu
Verbatim copying and redistribution of this entire page are permitted in any medium without royalties, provided this notice is preserved.
This page was generated by trivialblog. trivialblog is free software, available under the GNU GPL.
Tag icon copyright information is available in this file.