Save this video free

ECE344 Fall 2026 (Sec 1) Lec 2 - Kernels

Jon Eyolfson · 53:10 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jon Eyolfson uses a tiny 178-byte x86-64 ELF executable to connect machine code, file descriptors, and system calls, then explains how CPU privilege modes separate user programs from the kernel. He demonstrates Linux tools and interfaces (including readelf, a debugger, strace, /dev, and /proc) and shows how programs in different languages ultimately rely on kernel operations such as write and exit_group.

Key takeaways

Chapters

0:00 ECE344 Kernel Lecture Setup and the Hello World Byte Clue
4:44 A 178-Byte ELF Hello World and the Course’s CPU Architectures
7:00 File Descriptors, write, and exit_group
12:30 System-Call ABI: How Programs Request Kernel Services
16:57 ELF Headers, Load Addresses, and Hello World Instructions
22:00 Stepping Through a System Call and Defining Kernel Mode
27:00 System Calls as the User-to-Kernel Boundary
30:30 strace Reveals the Runtime Work Behind Hello World
41:00 Kernel Lifetime, Modules, and Unix File Redirection
45:30 Inspecting /dev and /proc, Then Summarizing Process Isolation

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

4:44 All righty. Welcome back to operating systems. Thank you again for joining me today. So today we continue our journey and we get to learn a little bit about kernels, one of the parts of our operating system. But before I left you on this little breadcrumb crumb that this collection of random bites aka magic numbers is actually hello world. So, let me switch over to VS Code and go look at I have two Hello World programs here. One for a different architecture. We'll go over that shortly. But you can see here that the one I'm going to execute because this matches my laptop is only

5:33 178 bytes. So, to show you that it actually does print hello world, I can just run it. It's just an executable like anything else like our hello world we wrote from C. If I go ahead and run it, it just shows hello world. Ter not terribly exciting, right? Well, it's kind of exciting. It's it's super small. So, as a quick aside, there's three kind of ISAs or instruction set architectures. So, that's again the machine code or the number the CPUs understand. There's three that you'll be touching at least two in this course. There's x86 for desktops. Non-Apple laptops are like really old ones at this point. Servers, also called AMD 64. They

6:21 mean the same thing. There's Arch 64, that's any ARM things, also called ARM 64. It's anyone's phone, tablets, newer M series Apple laptops. And then RS 5 which you actually use for 243 open- source ISA similar to ARM might also be called RV64GC RV 32 whatever that's how many bits it is and then some extensions at the end. So the teaching operating system we're going to be using in this course is XV6

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.