当前位置: 首页 > 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(补码)


http://www.mrgr.cn/news/99008.html

相关文章:

  • MCP是什么?为什么突然那么火?
  • GPU渲染阶段介绍+Shader基础结构实现
  • CTF--秋名山车神
  • 《AI大模型应知应会100篇》第26篇:Chain-of-Thought:引导大模型进行步骤推理
  • 2024年网站开发语言选择指南:PHP/Java/Node.js/Python如何选型?
  • Linux-进度条小程序
  • RenderStage::runCameraSetUp
  • B端可视化像企业数据的透视镜,看清关键信息
  • 1panel第三方应用商店(本地商店)配置和使用
  • Rocky8 升级 Python 3.9.20 并部署 Airflow 2.10.5
  • 基础学习:(7)nanoGPT 剩下的细节
  • 202520读书笔记|《我要按自己喜欢的方式去生活》——面对可能到来的裁员,那就等正式通知吧
  • python链表
  • CentOS 7系统yum报错解决方案(CentOS 7官方EOL问题修复)
  • 基于微信小程序的中医小妙招系统的设计与实现
  • ffmpeg 添加 nvenc 硬件编解码支持
  • 力扣-hot100(盛最多水的容器-双指针)
  • springcloud alibaba
  • Vue3 + TypeScript中provide和inject的用法示例
  • 论文阅读:2024 arxiv AI Safety in Generative AI Large Language Models: A Survey