当前位置: 首页 > news >正文

ICS丨Chapter 1 Introduction to Computer System

Chapter 1 Introduction to Computer System

Courses About Systems:

  1. DBMS
  2. Distributed Systems
  3. Compilers
  4. Architecture
  5. Operating Systems
  6. e.t.c.
  • 1. Brief Introduction
    • 1.1. What’s about CSAPP?
    • 1.2. Power of Abstraction
    • 1.3. Importance of understanding HOW things work
  • 2. Class 1 Notes : Bits,Bytes and Integers
    • 2.1. Representing data as bits
    • 2.2. Bit-level manipulations
    • Integers
      • Representation : unsigned and signed

1. Brief Introduction

This part is about CSAPP Chapter 1

1.1. What’s about CSAPP?

  1. System Knowledge
    • How hardware and software work together
  2. Useful outcomes

1.2. Power of Abstraction

  1. tiers of computer system
    • Software
      • Application
      • System Software
    • Hardware
  2. Proper Abstraction
    • Hardware
      • Processor
      • Main memory
      • I/o devices
    • 1-3 Processes
      如何在进程之间切换?
      进程内容之间是如何组织的?——虚拟内存
    • 2-3 Virtual Memory
    • 3-3 Files

1.3. Importance of understanding HOW things work

  1. Why?
    • Not only abstraction, but also reality
  2. Most CS courses emphasize abstraction
    • Abstract data types
    • Asymptotic analysis(渐进分析)

2. Class 1 Notes : Bits,Bytes and Integers

CSAPP Chapter 2 信息的表示和处理
续Class 2 Notes

2.1. Representing data as bits

Bits:

  • Each bit is 0 or 1
  • Why bits? Electronic Implementation(电子实现)
    • Easy to store with bistable elements(双稳元件)
    • Reliably transmitted on noisy and inaccurate wires

What is Byte:

  • 1 Byte = 8 bits
    • Binary 0000000 0 2 t o 1111111 1 2 00000000_{2} to 11111111_{2} 000000002to111111112
    • Decimal 0 10 t o 25 5 10 0_{10} to 255_{10} 010to25510
    • Hexadecimal 0 0 16 t o F F 16 00_{16} to FF_{16} 0016toFF16

Hexadecimal Reference Table

DecimalHexadecimalBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111

2.2. Bit-level manipulations

boolean algebra(布尔代数)

General Operators:
& | ^ ~
Shift Operation(移位运算):
<< >>(移位运算符)

Contrast: Logic Operations in C

  • Contrast to Bit-Level Operators
    • Logic Operations:
      && || !
      • View 0 as False
      • Anything nonzero is True
      • Always return 0 or 1
  • Examples:
    • !0x41 = 0
    • !0x00 = 1
    • !!0x41 = 1
    • p && *p ( avoid null pointer dereference(避免空指针解引用) )

Problem : Symmetric Difference(对称差) ? P15

Integers

Representation : unsigned and signed

unsigned and signed

Important Concept : Two's Complement(补码)

相关文章:

  • MFC文件-屏幕录像
  • C 语言联合与枚举:自定义类型的核心解析
  • [Swift]Xcode模拟器无法请求http接口问题
  • Qt unknown module(s) in qt:serialport解决方法
  • Oracle Recovery Tools修复ORA-600 6101/kdxlin:psno out of range故障
  • C++11新增语法:列表初始化
  • 实现AWS Lambda函数安全地请求企业内部API返回数据
  • [每周一更]-(第140期):sync.Pool 使用详解:性能优化的利器
  • Python制作简易PDF查看工具PDFViewerV1.0查找功能优化
  • 【文件操作与IO】详细解析文件操作与IO (二)
  • 零、HarmonyOS应用开发者基础学习总览
  • Cursor新版0.49.x发布
  • 开源Midjourney替代方案:企业级AI绘画+PPT生成系统+AI源码
  • YOLO拓展-锚框(anchor box)详解
  • 深入理解C++ 中的vector容器
  • 机器学习核心算法全解析:从基础到进阶的 18 大算法模型
  • 点云数据处理开源C++方案
  • 神经网络的数学之旅:从输入到反向传播
  • 在串口通信中使用共享指针(`std::shared_ptr`)
  • 用 R 语言打造交互式叙事地图:讲述黄河源区生态变化的故事
  • 马上评|古籍书店焕新归来,“故纸陈香”滋养依旧
  • 历史学家许福谦逝世,长期致力于魏晋南北朝史研究
  • 报告:去年物业服务百强企业营业收入均值同比增长3.52%
  • 东莞一初中生跑操时倒地身亡,家属质疑校方施救不力
  • 马上评丨婚介服务是“甜蜜的事业”,不容乱象滋生
  • 习近平在马来西亚媒体发表署名文章(全文)