Compiling C to printable x86, to make an executable research paper

Channel:suckerpinch · Length:25:41 · Published:2017-03-31 · Views:480023

Watch on YouTube

Summary

Tom7 explains how he built a SIGBOVIK 2017 paper made only of printable ASCII bytes that is also a valid DOS executable. He writes a C compiler targeting printable x86 without self-modifying code and solves the puzzles the constraint creates.

Why HN recommends it

HN fans call it a favorite engineering video and a showcase of Tom7's masterpiece-level, playful hacking.

His video about the printable x86[1] is my favorite engineering video of all time. — HN, 2019

Compilers, interpreters & program analysis · Security & hacking · Demoscene & retrocomputing

Subtitles (excerpt)

Hi, I'm Tom 7. Today I want to talk to you about a research paper, that is, at the same time, a computer program. What does that mean? Well, just because a file says, in its name, that it's an EXE, or executable program, doesn't mean that it necessarily is. It also doesn't mean that it isn't both an executable program and something else at the same time. Like, a text file, for example, containing an interesting research paper. Now, I didn't just find this research paper -- which is also a program -- I made it, for SIGBOVIK this year. So I want to talk about how I did that, because I think it's interesting. We're going to learn about compilers, we're going to learn about some bits, and some low-level assembly, and hopefully have some fun. Um, let's get started! (guitar music) Every file on the computer is just a bunch of bytes. And we'll talk more about bytes in a second because there's a particular thing about them that's important for this work. But I'm not going to belabor it, because first of all, I know there are a lot of people that already know everything about bytes. And then there are many people watching that don't live and breathe this stuff. Both will probably be bored by the details.

On Hacker News

Love Tom7, his video "Compiling C to printable x86, to make an executable research paper" [0] is my favorite but most of his stuff is super interesting. [0] [VIDEO] — omgmajk, 2023-10
The author is an absolute legend. Absolutely every video on his Youtube channel is a masterpiece [LINK] And this includes the video that explains this code (Compiling C to printable x86, to make an executable research paper) [VIDEO] — nextaccountic, 2023-07
Every one of this guy's SIGBOVIK papers/videos are pure gold. His video about the printable x86[1] is my favorite engineering video of all time. ^1: [VIDEO] — badrequest, 2019-11
He's a mad genius! I like his compiler that generates executables made up only of printable characters: [VIDEO] / [LINK] He's super playful and awesomely smart! — pronoiac, 2019-07
Mine are "Harder Drives"[1], "ELO World"[2], and "Printable x86"[3] [1] [LINK] [2] [LINK] [3] [VIDEO] — nick-of-time, 2023-07

Related videos