Save this video free

ECE344 Fall 2026 (Sec 1) Lec 3 - Libraries

Jon Eyolfson · 53:02 · 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 defines an operating system as a kernel plus the libraries required by its applications, explaining why Android and Debian can share the Linux kernel yet remain distinct systems. He compares dynamic `.so` and static `.a` libraries, demonstrates how changing a C struct’s layout can break a dynamic library’s ABI, and shows how tools such as `ldd`, `LD_PRELOAD`, Valgrind, and AddressSanitizer help inspect programs and memory use.

Key takeaways

Chapters

0:00 Operating Systems Include Application Libraries, Not Just Kernels
10:59 Dynamic Libraries Share Code at Runtime
15:00 Static Libraries Embed Code and Trade Updates for Independence
19:26 C Struct Layout Is Part of a Dynamic Library’s ABI
25:50 A Mismatched Point Library Reverses Direct Field Reads
34:00 Opaque Structs Protect Library Internals from ABI Breakage
36:20 Semantic Versioning Signals Compatibility Changes
38:17 LD_PRELOAD and Memory Tools Reveal Allocation Behavior
45:51 C Library Functions Buffer and Extend System Calls
48:09 Atexit Cleanup and the Costs of Library Compatibility

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

Transcript excerpt

4:26 All righty. Welcome back to the second half of our exciting journey. So, we're actually going to be able to complete our complete the answer of what an operating system actually is. So, we haven't even answered this question. It's lecture three. We actually don't really know what an operating system is. So, we now know from the last one that a kernel is part of an operating system. I said the core part of an operating system but what else? So for instance, let's think about operating systems. We know anyone in the Apple world knows like they have an operating system for everything. Mac OS, iOS, iPad OS, watch OS, TV OS, they Apple markets them as

5:17 different operating systems. But what if I told you they all run the exact same kernel? So there's only one kernel for all of those. So their kernels called Darwin and that's part of the operating system. Apple does not consider these uh does not consider all these the same operating system even though they're running the same kernel. So an operating system is not just a kernel. So what might make an operating system? So why would you say all of these are different operating systems even though I just told you they run the same kernel? Anyone want to give me some ration? Try and come up with Apple's rationale for me as to why these are different operating systems. >> Yeah,

6:06 >> I would guess it's like the other stuff that's not the kernel that's in the operating system is different. >> Some other stuff is different. What What other stuff would be different though? >> Libraries. >> What kind of library? Aside from the lecture title, what what kind of libraries would we want? What what would

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.