classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_25 Oct

Date 2026-10-25 Words 16,697 Segments 7,158
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-10-25 0000 FCS 25 Oct"

title: "FCS 25 Oct"

date: "2026-10-25 00:00"

duration: "--"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 4

transcript_chars: 93491

generated: "2026-11-23T01:35:51+05:30"


FCS 25 Oct

Overview

This class focused on the precise boundary between hardware and software in a computer system. It began by defining the Instruction Set Architecture (ISA) as the contract between machine code and the processor, distinct from any specific CPU implementation (microarchitecture). The session then compared major ISA families (x86-64, ARM64, RISC-V) from a whole-system perspective, considering factors like compatibility, performance, and ecosystem. Finally, it explored the mechanisms by which hardware and software interact, covering Input/Output techniques (polling, interrupts, DMA, memory-mapped I/O) and demonstrating how to use Linux commands to inspect system hardware, architecture, and device activity.

Learning outcomes

Core concepts

Instruction Set Architecture (ISA) as Contract

The ISA is the software-visible contract that defines architectural behavior: instructions and their meaning, architectural registers, memory access rules, encodings, specified exceptions, and privileged behavior. It is what machine code can expect from any compliant processor. This is distinct from microarchitecture, which is how a particular CPU implements the ISA (e.g., pipeline width, cache hierarchy). Multiple different microarchitectures can correctly implement the same ISA.

RISC vs. CISC as Design Philosophy

RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer) are more useful as sets of design questions than as a simple "simple vs. complex" slogan. Modern processors often incorporate ideas from both philosophies, complicating any simple categorization. The distinction is about design trade-offs, not inherent superiority.

Input/Output Mechanisms

Systems use a combination of mechanisms for device communication:

System Inspection via Linux

The operating system exposes hardware information through files and commands. This provides evidence of system state but not a complete explanation. Key tools include:

Formulas and maths

(No formulas were presented in this session.)

Worked examples

RISC-V Register Specification

Polling Interval Trade-off

Linux Command Output

Questions asked in class

Key takeaways

Exam-style questions

1. A program compiled for x86-64 runs correctly on both an Intel Core i7 and an AMD Ryzen CPU. Explain how this is possible given that their internal designs differ.

2. Describe a scenario where using polling for I/O would be preferable to using interrupts, and another scenario where the opposite is true. Justify your choices.

3. You use lscpu on a system and see: "CPU(s): 4", "Thread(s) per core: 2", "Core(s) per socket: 2", "Socket(s): 1". Explain what this tells you about the system's hardware configuration.

4. What is the primary purpose of Direct Memory Access (DMA), and how does it change the role of the CPU during a large data transfer from a disk to memory?

Glossary

Follow-ups

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…