An in-depth understanding of computer programming Fundamentals computer System 1
Directory
- Overview-"In-depth understanding of computer systems"
- Computer system roaming
- Representation and processing of information
Overview-"In-depth understanding of computer systems"
Computer Systems A Programmers Perspective English name
Computer system roaming
Introduction to this chapter
What happens to the system when the Hello program is executed on the system and why
Information is bit + context
The source program (or source file) hello.c, is actually a bit sequence of values 0 and 1, and 8 bits are organized into a set of bytes. Each byte represents a text character in the program, and most modern systems use the ASCII standard to represent text characters
Programs are translated into different formats by other programs
Compilation system (compilation Systems)
preprocessor, compiler, assembler, and linker
Four stages of the translation process
Preprocessing phase: HELLO.C (source program), HELLO.I (modified source program) PS: both are text
Compile stage: hello.i-Hello.s (assembler text)
Assembly stage: Hello.s-hello.o (relocatable target program binary)
Link stage: hello.o, hello (executable binary for Target program)
It's good to know how the compilation system works
Optimizing Program Performance
Understanding the error that occurs when linking
Avoid security breaches
The processor reads and interprets the instructions stored in the memory
Shell (Shell)
Shell is a command-line interpreter
Hardware composition of the system
Bus
A set of electronic pipelines throughout the system, usually the bus is designed to transmit fixed-length chunks of bytes, i.e. word. The number of bytes (that is, the word length) is a basic system parameter. There are 4 bytes (32 bits) and 8 bytes (64 bits)
I/O devices
Connected to the I/O bus via a controller or adapter. The controller is a chipset that is placed on the I/O device itself or on the system's main printed circuit board (usually called the motherboard), while the adapter is a card plugged into the motherboard slot
Memory
Processor
Load, store, manipulate, jump
Run the Hello program
Cache is critical
Storage Device Formation Hierarchy
Operating System Management Hardware
Process
Thread
Virtual memory
Program code and data
Heap
Shared libraries
Stack
Kernel virtual memory
File
Using network communication between systems
Important topics
Concurrency and parallelism
Thread-level concurrency
Instruction-level parallelism
Single instruction, multi-data parallelism
The importance of abstraction in computer systems
Representation and processing of information
An in-depth understanding of computer programming Fundamentals computer System 1