An ag(e)ing hacker, Luca Saiu's blog
2022-03-10 21:32 Luca Saiu

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 (https://binary-tools.net/) organised by José Marchesi (https://jemarch.net); 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 https://archive.org/details/gnu-jitter-and-gcc-the-fun-of-playing-with-fire--bts-2022--saiu--2022-03-06. You can find a slightly updated copy of my PDF slides on my web site at http://ageinghacker.net/talks/jitter-slides--saiu--bts-2022--2022-03-06.pdf.

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

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

Next post Previous post

You might want to go to the main blog index (Atom feedfeeds for every post: Atom 1.0, RSS 2.0) or to my web site https://ageinghacker.net.

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

You might be interested in my web site https://ageinghacker.net.


Copyright © 2009, 2011-2014, 2017, 2018, 2021-2024 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.