The book has 6 chapters. Chapter 1: Introduces the main tools used in this book and some preparatory knowledge that you need to know. Chapter 2: Analyzes the simplest and most commonly used basic syntax to help readers adapt to the pace of this book. Chapter 3: For advanced knowledge, it will deeply analyze the working principle and implementation details of functions from the perspective of CPU and operating system. Chapter 4: Analyzes the classic C++ syntax, the implementation logic behind it, and introduces the \"object-oriented\" programming ideas and advantages and disadvantages. Chapter 5: Discusses software technologies that are strongly related to the operating system, and will connect the contents of all chapters to initially form an operating model of a modern operating system. Chapter 6: We will discuss some classic interview and written test questions, and share with readers the pain and joy of work, study, and job hunting. This book can be used as a textbook for undergraduate or graduate students in computer science, automation and related majors in colleges and universities, and can also be used as a reference for researchers and engineering technicians who are interested in the working principles and operating systems of C/C++. Table of Contents Chapter 1 Preliminary Knowledge Reading Suggestions 002 1.1 Tool Introduction 003 1.2 Program Running in the Eyes of the CPU 006 1.3 Assembly Language in the Eyes of the CPU 012 Chapter 2 Basic Syntax Reading Suggestions 020 2.1 Main Function in the Eyes of the CPU 021 2.2 Variables in the Eyes of the CPU 024 2.3 Goto and If Else in the Eyes of the CPU 028 2.4 Pointer Variables in the Eyes of the CPU 032 2.5 The Nature and Risks of Pointers in the Eyes of the CPU 039 2.6 Arrays in the Eyes of the CPU 043 2.7 Array Out of Bounds in the Eyes of the CPU 047 2.8 References in the Eyes of the CPU 052 2.9 i and i in the Eyes of the CPU 054 2.10 Code Trap Type Conversion 059 Chapter 3 Function Principles Reading Suggestions 064 3.1 Parameter Passing in the Eyes of the CPU 065 3.2 Function Brackets in the Eyes of the CPU 070 3.3 Calling and Returning in the Eyes of the CPU 076 3.4 Function Pointers in the Eyes of the CPU 083 3.5 Function Return Values in the Eyes of the CPU 087 3.6 Heap and Stack in the Eyes of the CPU 094 3.7 Function Experiments to Trace Function Call Relations 104 Chapter 4 C Feature Reading Suggestions 108 4.1 this in the eyes of the CPU 109 4.2 Constructors in the eyes of the CPU 111 4.3 Virtual Functions in the Eyes of the CPU 115 4.4 Polymorphism in the eyes of the CPU 121 4.5 Templates in the eyes of the CPU 128 4.6 malloc and new in the eyes of the CPU 131 4.7 Dependency Inversion in Object-Oriented Practice 135 Chapter 5 Advanced Programming Reading Suggestions 144 5.1 Virtual Memory in the Eyes of the CPU 145 5.2 The Process of Sit-in-the-Well and Watch the World 153 5.3 Address Mapping in the Eyes of the CPU 159 5.4 Volatile in the Eyes of the CPU 164 5.5 Constants in the Eyes of the CPU 169 5.6 System Calls in the Eyes of the CPU 173 5.7 Big-endian and Little-endian in the Eyes of the CPU 179 5.8 Context in the Eyes of the CPU 186 5.9 Locks in the eyes of the CPU 192 Chapter 6 Interview Challenges Reading Suggestions 202 6.1 static, global, and local 203 6.2 Arrays and double pointers 210 6.3 Why are pointers so difficult 216 6.4 How auto works 218 6.5 How thread_local works 223 6.6 Interview Tips 227
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore