├── .gitignore ├── LICENSE ├── README.md ├── 全部代码 ├── 10 指令乱序与内存屏障 │ ├── C语言的volatile关键字 │ │ ├── with_volatile.c │ │ ├── with_volatile.dump.txt │ │ ├── with_volatile.s │ │ ├── without_volatile.c │ │ ├── without_volatile.dump.txt │ │ └── without_volatile.s │ ├── Java语言的volatile关键字 │ │ └── NumVolatile.java │ ├── 内存屏障 │ │ ├── cpu_reorder.c │ │ ├── cpu_reorder.dump.txt │ │ ├── cpu_reorder.txt │ │ ├── fix_cpu_reorder.c │ │ ├── fix_cpu_reorder.dump.txt │ │ └── fix_cpu_reorder.txt │ └── 指令乱序 │ │ ├── fix_loadstore.O2.s │ │ ├── fix_loadstore.c │ │ ├── fix_loadstore.txt │ │ ├── loadstore.O1.s │ │ ├── loadstore.O2.s │ │ ├── loadstore.c │ │ ├── loadstore.s │ │ └── loadstore.txt ├── 2 CPU和内存 │ ├── big_endian.c │ ├── byte_transfer.c │ ├── byte_transfer.s │ ├── int_order.c │ ├── layout.c │ ├── page_table.c │ ├── string_order.c │ ├── string_transfer.c │ └── string_transfer.s ├── 3 汇编基础 │ ├── part.dump.txt │ ├── part.elf.txt │ ├── part.s │ ├── yufa.ATT.s │ ├── yufa.c │ └── yufa.intel.s ├── 4 汇编指令 │ ├── CAS指令 │ │ ├── cmpxchg.s │ │ └── xchg.s │ ├── 位操作指令 │ │ ├── and_bit.s │ │ ├── not_bit.s │ │ ├── or_bit.s │ │ └── xor_bit.s │ ├── 内联汇编指令 │ │ ├── float_sum.c │ │ └── input_output.c │ ├── 函数指令 │ │ └── sum_func.s │ ├── 寻址指令 │ │ └── mem_addr.s │ ├── 左移右移指令 │ │ ├── left.s │ │ └── right.s │ ├── 整数指令 │ │ ├── add.s │ │ ├── add_hard.s │ │ ├── div.s │ │ ├── div_hard.s │ │ ├── mul.s │ │ ├── mul_hard.s │ │ ├── sub.s │ │ └── sub_hard.s │ ├── 比较指令 │ │ ├── float_signed.s │ │ ├── many_float.s │ │ ├── many_int.s │ │ ├── signed_int.s │ │ └── unsigned_int.s │ ├── 浮点数指令 │ │ ├── add.s │ │ ├── div.s │ │ ├── mul.s │ │ └── sub.s │ ├── 移动指令 │ │ ├── float_mov.s │ │ └── int_mov.s │ ├── 综合使用 │ │ ├── float_computer.s │ │ ├── int_computer.s │ │ └── string_cmp.s │ ├── 自增自减指令 │ │ ├── dec.s │ │ └── inc.s │ ├── 跳转指令 │ │ ├── loop_jmp.s │ │ ├── multi_jmp.s │ │ └── reorder_jmp.s │ └── 转换指令 │ │ ├── cx_cvt.s │ │ ├── float_cvt.s │ │ └── int_cvt.s ├── 5 编译和运行 │ ├── ELF格式 │ │ ├── cat.c │ │ ├── cat.h │ │ ├── cat.o.dump.txt │ │ ├── cat.o.elf.txt │ │ ├── main.c │ │ ├── main.dump.txt │ │ └── main.elf.txt │ ├── LDS脚本 │ │ ├── main.c │ │ ├── main.dump.txt │ │ ├── main.elf.txt │ │ └── main.lds │ ├── 动态库 │ │ ├── main.c │ │ ├── main.dump.txt │ │ ├── main.elf.txt │ │ ├── main.s │ │ ├── mock_so.c │ │ ├── shared_bird.c │ │ └── shared_bird.h │ ├── 反汇编 │ │ ├── dump.asm.all.txt │ │ ├── dump.c │ │ ├── dump.s │ │ └── dump.section.txt │ └── 静态库 │ │ ├── bird.c │ │ ├── bird.h │ │ ├── dog.c │ │ ├── dog.h │ │ ├── main.c │ │ ├── main.dump.txt │ │ ├── main.elf.txt │ │ ├── my_static.a.dump.txt │ │ └── my_static.a.elf.txt ├── 6 函数 │ ├── body.c │ ├── body.s │ ├── func.c │ ├── inline.c │ ├── inline.s │ ├── many_name_c.c │ ├── many_name_cpp.cpp │ ├── many_name_cpp.s │ ├── name_c.c │ ├── name_c.s │ ├── name_cpp.cpp │ ├── name_cpp.s │ ├── param.c │ ├── param.s │ ├── param_reg.s │ ├── param_stack.s │ ├── refer_num.c │ ├── refer_num.s │ ├── refer_read_only.c │ ├── refer_read_only.dump.txt │ ├── refer_read_only.elf.txt │ ├── refer_read_only.s │ ├── refer_struct.c │ ├── refer_struct.dump.txt │ ├── refer_struct.elf.txt │ ├── refer_struct.s │ ├── return.c │ ├── return.s │ ├── return_hard.c │ ├── return_hard.s │ ├── return_stack.s │ ├── structure.c │ └── structure.s ├── 6 函数栈 │ ├── big_struct.c │ ├── call_func.c │ ├── call_func.s │ ├── depth.c │ ├── depth.s │ ├── empty_frame.s │ ├── frame.dump.txt │ ├── frame.s │ ├── ignore.s │ ├── max_size.c │ ├── max_size.s │ ├── overflow.s │ ├── param.c │ ├── param.s │ ├── param_addr.c │ └── struct_addr.c ├── 7 程序的基础组件 │ ├── C语言 │ │ ├── fast.c │ │ ├── fast.dump.txt │ │ ├── fast.s │ │ ├── fast.txt │ │ ├── func_pack.c │ │ └── object.c │ ├── 循环与递归 │ │ ├── different.c │ │ └── digui_sum.c │ ├── 指针 │ │ ├── scan_mem.c │ │ ├── scan_mem.elf.txt │ │ ├── scan_mem.txt │ │ ├── split_int.s │ │ ├── split_int.txt │ │ ├── type_pointer.c │ │ └── type_pointer.s │ ├── 数组 │ │ ├── border_array.c │ │ ├── border_array.s │ │ ├── num_array.c │ │ ├── num_array.elf.txt │ │ ├── num_array.s │ │ ├── refer_array.c │ │ ├── refer_array.s │ │ ├── struct_array.c │ │ ├── struct_array.elf.txt │ │ └── struct_array.s │ ├── 索引 │ │ ├── Line2d.java │ │ ├── Map2dIndex.java │ │ ├── Map2dIndexMain.java │ │ └── Point2d.java │ ├── 结构体 │ │ ├── bit_field.c │ │ ├── bit_field.s │ │ ├── complex.c │ │ ├── field_addr.c │ │ ├── field_addr.s │ │ ├── head.c │ │ ├── head.s │ │ ├── offset_field.c │ │ ├── offset_field.dump.txt │ │ ├── offset_field.s │ │ ├── refer.c │ │ ├── refer.s │ │ ├── scan_field.c │ │ └── scan_field.s │ └── 缓存 │ │ ├── num_with_cache.c │ │ └── num_without_cache.c ├── 8 并发与线程 │ ├── 伪共享 │ │ ├── falseshare.c │ │ └── falseshare.txt │ ├── 协程 │ │ ├── co_handler.c │ │ ├── co_handler.h │ │ ├── co_main.c │ │ ├── co_switch_context.s │ │ └── co_说明.txt │ ├── 并发写 │ │ ├── atomic.c │ │ ├── atomic.s │ │ ├── multi_cas.c │ │ └── multi_cas.txt │ ├── 线程 │ │ ├── cpu_busy.c │ │ ├── cpu_busy.txt │ │ ├── io_busy.c │ │ ├── io_busy.txt │ │ ├── io_file.txt │ │ ├── thread.c │ │ └── thread.txt │ ├── 阻塞锁 │ │ ├── mutex_lock.c │ │ ├── mutex_lock.s │ │ └── mutex_lock.txt │ └── 非阻塞锁 │ │ ├── spin_lock.c │ │ ├── spin_lock.i │ │ ├── spin_lock.s │ │ └── spin_lock.txt └── 9 无锁编程 │ ├── CPU隔离 │ ├── percpu.c │ ├── percpu.dump.txt │ ├── percpu.elf.txt │ ├── percpu.lds │ └── percpu.txt │ ├── 原子操作 │ ├── atomic.c │ └── atomic.txt │ ├── 环形队列 │ ├── ringbuffer.c │ └── ringbuffer.txt │ └── 线程隔离 │ ├── threadlocal.c │ └── threadlocal.txt ├── 全部章节 ├── 1.1 开发环境.pdf ├── 1.2 学习技巧.pdf ├── 10.1 指令乱序.pdf ├── 10.2 内存屏障.pdf ├── 10.3 linux源码中的内存屏障.pdf ├── 10.4 C语言的volatile关键字.pdf ├── 10.5 Java语言的volatile关键字.pdf ├── 2.1 CPU.pdf ├── 2.2 虚拟内存.pdf ├── 2.3 进程的内存布局.pdf ├── 2.4 字节顺序.pdf ├── 3.1 汇编语法分类.pdf ├── 3.2 汇编文件组成.pdf ├── 3.3 寄存器分类.pdf ├── 3.4 汇编数据类型.pdf ├── 3.5 汇编指令命名规则.pdf ├── 4.1 移动指令.pdf ├── 4.10 浮点数除法指令.pdf ├── 4.11 整数转换指令.pdf ├── 4.12 浮点数转换指令.pdf ├── 4.13 跨寄存器扩展指令.pdf ├── 4.14 自增指令.pdf ├── 4.15 自减指令.pdf ├── 4.16 左移指令.pdf ├── 4.17 右移指令.pdf ├── 4.18 位与指令.pdf ├── 4.19 位或指令.pdf ├── 4.2 寻址指令.pdf ├── 4.20 位取反指令.pdf ├── 4.21 位异或指令.pdf ├── 4.22 整数比较指令.pdf ├── 4.23 浮点数比较指令.pdf ├── 4.24 跳转指令.pdf ├── 4.25 CAS指令.pdf ├── 4.26 函数指令.pdf ├── 4.27 内联汇编.pdf ├── 4.28 综合,整数计算器.pdf ├── 4.29 综合,浮点数计算器.pdf ├── 4.3 整数减法指令.pdf ├── 4.3 整数加法指令.pdf ├── 4.30 综合,字符串比较器.pdf ├── 4.5 整数乘法指令.pdf ├── 4.6 整数除法指令.pdf ├── 4.7 浮点数加法指令.pdf ├── 4.8 浮点数减法指令.pdf ├── 4.9 浮点数乘法指令.pdf ├── 5.1 ELF文件格式.pdf ├── 5.2 静态库.pdf ├── 5.3 动态库.pdf ├── 5.4 LDS脚本.pdf ├── 5.5 反汇编.pdf ├── 6.1 函数的结构.pdf ├── 6.2 函数名.pdf ├── 6.3 函数体.pdf ├── 6.4 函数的入参.pdf ├── 6.5 函数的返回值.pdf ├── 6.6 值传递与引用传递.pdf ├── 6.7 函数栈.pdf ├── 7.1 结构体struct.pdf ├── 7.2 数组array.pdf ├── 7.3 指针pointer.pdf ├── 7.4 循环与递归.pdf ├── 7.5 缓存cache.pdf ├── 7.6 索引index.pdf ├── 7.7 C语言高效的秘密.pdf ├── 7.8 C语言实现面向对象.pdf ├── 8.1 并发写与CAS指令.pdf ├── 8.2 非阻塞锁与CAS指令.pdf ├── 8.3 阻塞锁与CAS指令.pdf ├── 8.4 伪共享.pdf ├── 8.5 线程的原理.pdf ├── 8.6 协程的原理.pdf ├── 9.1 percpu CPU隔离.pdf ├── 9.2 threadlocal 线程隔离.pdf ├── 9.3 atomic 原子操作.pdf └── 9.4 ringbuffer 环形队列.pdf ├── 程序原理_前言.txt └── 程序原理_目录.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/README.md -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.dump.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/with_volatile.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.dump.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/C语言的volatile关键字/without_volatile.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/Java语言的volatile关键字/NumVolatile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/Java语言的volatile关键字/NumVolatile.java -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.dump.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/cpu_reorder.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.dump.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/内存屏障/fix_cpu_reorder.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.O2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.O2.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/fix_loadstore.txt -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.O1.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.O1.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.O2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.O2.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.c -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.s -------------------------------------------------------------------------------- /全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/10 指令乱序与内存屏障/指令乱序/loadstore.txt -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/big_endian.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/big_endian.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/byte_transfer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/byte_transfer.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/byte_transfer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/byte_transfer.s -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/int_order.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/int_order.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/layout.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/layout.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/page_table.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/page_table.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/string_order.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/string_order.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/string_transfer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/string_transfer.c -------------------------------------------------------------------------------- /全部代码/2 CPU和内存/string_transfer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/2 CPU和内存/string_transfer.s -------------------------------------------------------------------------------- /全部代码/3 汇编基础/part.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/part.dump.txt -------------------------------------------------------------------------------- /全部代码/3 汇编基础/part.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/part.elf.txt -------------------------------------------------------------------------------- /全部代码/3 汇编基础/part.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/part.s -------------------------------------------------------------------------------- /全部代码/3 汇编基础/yufa.ATT.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/yufa.ATT.s -------------------------------------------------------------------------------- /全部代码/3 汇编基础/yufa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/yufa.c -------------------------------------------------------------------------------- /全部代码/3 汇编基础/yufa.intel.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/3 汇编基础/yufa.intel.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/CAS指令/cmpxchg.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/CAS指令/cmpxchg.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/CAS指令/xchg.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/CAS指令/xchg.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/位操作指令/and_bit.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/位操作指令/and_bit.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/位操作指令/not_bit.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/位操作指令/not_bit.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/位操作指令/or_bit.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/位操作指令/or_bit.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/位操作指令/xor_bit.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/位操作指令/xor_bit.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/内联汇编指令/float_sum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/内联汇编指令/float_sum.c -------------------------------------------------------------------------------- /全部代码/4 汇编指令/内联汇编指令/input_output.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/内联汇编指令/input_output.c -------------------------------------------------------------------------------- /全部代码/4 汇编指令/函数指令/sum_func.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/函数指令/sum_func.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/寻址指令/mem_addr.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/寻址指令/mem_addr.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/左移右移指令/left.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/左移右移指令/left.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/左移右移指令/right.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/左移右移指令/right.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/add.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/add.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/add_hard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/add_hard.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/div.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/div.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/div_hard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/div_hard.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/mul.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/mul.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/mul_hard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/mul_hard.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/sub.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/sub.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/整数指令/sub_hard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/整数指令/sub_hard.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/比较指令/float_signed.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/比较指令/float_signed.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/比较指令/many_float.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/比较指令/many_float.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/比较指令/many_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/比较指令/many_int.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/比较指令/signed_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/比较指令/signed_int.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/比较指令/unsigned_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/比较指令/unsigned_int.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/浮点数指令/add.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/浮点数指令/add.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/浮点数指令/div.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/浮点数指令/div.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/浮点数指令/mul.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/浮点数指令/mul.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/浮点数指令/sub.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/浮点数指令/sub.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/移动指令/float_mov.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/移动指令/float_mov.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/移动指令/int_mov.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/移动指令/int_mov.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/综合使用/float_computer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/综合使用/float_computer.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/综合使用/int_computer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/综合使用/int_computer.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/综合使用/string_cmp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/综合使用/string_cmp.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/自增自减指令/dec.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/自增自减指令/dec.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/自增自减指令/inc.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/自增自减指令/inc.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/跳转指令/loop_jmp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/跳转指令/loop_jmp.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/跳转指令/multi_jmp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/跳转指令/multi_jmp.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/跳转指令/reorder_jmp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/跳转指令/reorder_jmp.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/转换指令/cx_cvt.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/转换指令/cx_cvt.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/转换指令/float_cvt.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/转换指令/float_cvt.s -------------------------------------------------------------------------------- /全部代码/4 汇编指令/转换指令/int_cvt.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/4 汇编指令/转换指令/int_cvt.s -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/cat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/cat.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/cat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/cat.h -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/cat.o.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/cat.o.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/cat.o.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/cat.o.elf.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/main.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/main.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/main.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/ELF格式/main.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/ELF格式/main.elf.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/LDS脚本/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/LDS脚本/main.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/LDS脚本/main.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/LDS脚本/main.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/LDS脚本/main.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/LDS脚本/main.elf.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/LDS脚本/main.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/LDS脚本/main.lds -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/main.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/main.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/main.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/main.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/main.elf.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/main.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/main.s -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/mock_so.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/mock_so.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/shared_bird.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/shared_bird.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/动态库/shared_bird.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/动态库/shared_bird.h -------------------------------------------------------------------------------- /全部代码/5 编译和运行/反汇编/dump.asm.all.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/反汇编/dump.asm.all.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/反汇编/dump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/反汇编/dump.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/反汇编/dump.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/反汇编/dump.s -------------------------------------------------------------------------------- /全部代码/5 编译和运行/反汇编/dump.section.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/反汇编/dump.section.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/bird.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/bird.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/bird.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/bird.h -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/dog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/dog.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/dog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/dog.h -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/main.c -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/main.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/main.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/main.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/main.elf.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/my_static.a.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/my_static.a.dump.txt -------------------------------------------------------------------------------- /全部代码/5 编译和运行/静态库/my_static.a.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/5 编译和运行/静态库/my_static.a.elf.txt -------------------------------------------------------------------------------- /全部代码/6 函数/body.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/body.c -------------------------------------------------------------------------------- /全部代码/6 函数/body.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/body.s -------------------------------------------------------------------------------- /全部代码/6 函数/func.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /全部代码/6 函数/inline.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/inline.c -------------------------------------------------------------------------------- /全部代码/6 函数/inline.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/inline.s -------------------------------------------------------------------------------- /全部代码/6 函数/many_name_c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/many_name_c.c -------------------------------------------------------------------------------- /全部代码/6 函数/many_name_cpp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/many_name_cpp.cpp -------------------------------------------------------------------------------- /全部代码/6 函数/many_name_cpp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/many_name_cpp.s -------------------------------------------------------------------------------- /全部代码/6 函数/name_c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/name_c.c -------------------------------------------------------------------------------- /全部代码/6 函数/name_c.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/name_c.s -------------------------------------------------------------------------------- /全部代码/6 函数/name_cpp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/name_cpp.cpp -------------------------------------------------------------------------------- /全部代码/6 函数/name_cpp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/name_cpp.s -------------------------------------------------------------------------------- /全部代码/6 函数/param.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/param.c -------------------------------------------------------------------------------- /全部代码/6 函数/param.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/param.s -------------------------------------------------------------------------------- /全部代码/6 函数/param_reg.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/param_reg.s -------------------------------------------------------------------------------- /全部代码/6 函数/param_stack.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/param_stack.s -------------------------------------------------------------------------------- /全部代码/6 函数/refer_num.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_num.c -------------------------------------------------------------------------------- /全部代码/6 函数/refer_num.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_num.s -------------------------------------------------------------------------------- /全部代码/6 函数/refer_read_only.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_read_only.c -------------------------------------------------------------------------------- /全部代码/6 函数/refer_read_only.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_read_only.dump.txt -------------------------------------------------------------------------------- /全部代码/6 函数/refer_read_only.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_read_only.elf.txt -------------------------------------------------------------------------------- /全部代码/6 函数/refer_read_only.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_read_only.s -------------------------------------------------------------------------------- /全部代码/6 函数/refer_struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_struct.c -------------------------------------------------------------------------------- /全部代码/6 函数/refer_struct.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_struct.dump.txt -------------------------------------------------------------------------------- /全部代码/6 函数/refer_struct.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_struct.elf.txt -------------------------------------------------------------------------------- /全部代码/6 函数/refer_struct.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/refer_struct.s -------------------------------------------------------------------------------- /全部代码/6 函数/return.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/return.c -------------------------------------------------------------------------------- /全部代码/6 函数/return.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/return.s -------------------------------------------------------------------------------- /全部代码/6 函数/return_hard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/return_hard.c -------------------------------------------------------------------------------- /全部代码/6 函数/return_hard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/return_hard.s -------------------------------------------------------------------------------- /全部代码/6 函数/return_stack.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/return_stack.s -------------------------------------------------------------------------------- /全部代码/6 函数/structure.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/structure.c -------------------------------------------------------------------------------- /全部代码/6 函数/structure.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数/structure.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/big_struct.c: -------------------------------------------------------------------------------- 1 | 2 | // 把很大的struct作为入参和返回值。 3 | -------------------------------------------------------------------------------- /全部代码/6 函数栈/call_func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/call_func.c -------------------------------------------------------------------------------- /全部代码/6 函数栈/call_func.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/call_func.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/depth.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/depth.c -------------------------------------------------------------------------------- /全部代码/6 函数栈/depth.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/depth.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/empty_frame.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/empty_frame.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/frame.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/frame.dump.txt -------------------------------------------------------------------------------- /全部代码/6 函数栈/frame.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/frame.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/ignore.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/ignore.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/max_size.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/max_size.c -------------------------------------------------------------------------------- /全部代码/6 函数栈/max_size.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/max_size.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/overflow.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/overflow.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/param.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/param.c -------------------------------------------------------------------------------- /全部代码/6 函数栈/param.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/param.s -------------------------------------------------------------------------------- /全部代码/6 函数栈/param_addr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/param_addr.c -------------------------------------------------------------------------------- /全部代码/6 函数栈/struct_addr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/6 函数栈/struct_addr.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/fast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/fast.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/fast.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/fast.dump.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/fast.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/fast.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/fast.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/fast.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/func_pack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/func_pack.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/C语言/object.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/C语言/object.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/循环与递归/different.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/循环与递归/different.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/循环与递归/digui_sum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/循环与递归/digui_sum.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/scan_mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/scan_mem.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/scan_mem.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/scan_mem.elf.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/scan_mem.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/scan_mem.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/split_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/split_int.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/split_int.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/split_int.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/type_pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/type_pointer.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/指针/type_pointer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/指针/type_pointer.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/border_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/border_array.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/border_array.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/border_array.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/num_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/num_array.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/num_array.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/num_array.elf.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/num_array.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/num_array.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/refer_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/refer_array.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/refer_array.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/refer_array.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/struct_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/struct_array.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/struct_array.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/struct_array.elf.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/数组/struct_array.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/数组/struct_array.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/索引/Line2d.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/索引/Line2d.java -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/索引/Map2dIndex.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/索引/Map2dIndex.java -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/索引/Map2dIndexMain.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/索引/Map2dIndexMain.java -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/索引/Point2d.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/索引/Point2d.java -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/bit_field.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/bit_field.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/bit_field.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/bit_field.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/complex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/complex.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/field_addr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/field_addr.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/field_addr.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/field_addr.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/head.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/head.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/head.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/head.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/offset_field.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/offset_field.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/offset_field.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/offset_field.dump.txt -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/offset_field.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/offset_field.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/refer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/refer.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/refer.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/refer.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/scan_field.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/scan_field.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/结构体/scan_field.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/结构体/scan_field.s -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/缓存/num_with_cache.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/缓存/num_with_cache.c -------------------------------------------------------------------------------- /全部代码/7 程序的基础组件/缓存/num_without_cache.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/7 程序的基础组件/缓存/num_without_cache.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/伪共享/falseshare.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/伪共享/falseshare.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/伪共享/falseshare.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/伪共享/falseshare.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/协程/co_handler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/协程/co_handler.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/协程/co_handler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/协程/co_handler.h -------------------------------------------------------------------------------- /全部代码/8 并发与线程/协程/co_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/协程/co_main.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/协程/co_switch_context.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/协程/co_switch_context.s -------------------------------------------------------------------------------- /全部代码/8 并发与线程/协程/co_说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/协程/co_说明.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/并发写/atomic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/并发写/atomic.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/并发写/atomic.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/并发写/atomic.s -------------------------------------------------------------------------------- /全部代码/8 并发与线程/并发写/multi_cas.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/并发写/multi_cas.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/并发写/multi_cas.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/并发写/multi_cas.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/cpu_busy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/cpu_busy.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/cpu_busy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/cpu_busy.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/io_busy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/io_busy.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/io_busy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/io_busy.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/io_file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/io_file.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/thread.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/线程/thread.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/线程/thread.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/阻塞锁/mutex_lock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/阻塞锁/mutex_lock.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/阻塞锁/mutex_lock.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/阻塞锁/mutex_lock.s -------------------------------------------------------------------------------- /全部代码/8 并发与线程/阻塞锁/mutex_lock.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/阻塞锁/mutex_lock.txt -------------------------------------------------------------------------------- /全部代码/8 并发与线程/非阻塞锁/spin_lock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/非阻塞锁/spin_lock.c -------------------------------------------------------------------------------- /全部代码/8 并发与线程/非阻塞锁/spin_lock.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/非阻塞锁/spin_lock.i -------------------------------------------------------------------------------- /全部代码/8 并发与线程/非阻塞锁/spin_lock.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/非阻塞锁/spin_lock.s -------------------------------------------------------------------------------- /全部代码/8 并发与线程/非阻塞锁/spin_lock.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/8 并发与线程/非阻塞锁/spin_lock.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/CPU隔离/percpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/CPU隔离/percpu.c -------------------------------------------------------------------------------- /全部代码/9 无锁编程/CPU隔离/percpu.dump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/CPU隔离/percpu.dump.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/CPU隔离/percpu.elf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/CPU隔离/percpu.elf.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/CPU隔离/percpu.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/CPU隔离/percpu.lds -------------------------------------------------------------------------------- /全部代码/9 无锁编程/CPU隔离/percpu.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/CPU隔离/percpu.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/原子操作/atomic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/原子操作/atomic.c -------------------------------------------------------------------------------- /全部代码/9 无锁编程/原子操作/atomic.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/原子操作/atomic.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/环形队列/ringbuffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/环形队列/ringbuffer.c -------------------------------------------------------------------------------- /全部代码/9 无锁编程/环形队列/ringbuffer.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/环形队列/ringbuffer.txt -------------------------------------------------------------------------------- /全部代码/9 无锁编程/线程隔离/threadlocal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/线程隔离/threadlocal.c -------------------------------------------------------------------------------- /全部代码/9 无锁编程/线程隔离/threadlocal.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部代码/9 无锁编程/线程隔离/threadlocal.txt -------------------------------------------------------------------------------- /全部章节/1.1 开发环境.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/1.1 开发环境.pdf -------------------------------------------------------------------------------- /全部章节/1.2 学习技巧.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/1.2 学习技巧.pdf -------------------------------------------------------------------------------- /全部章节/10.1 指令乱序.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/10.1 指令乱序.pdf -------------------------------------------------------------------------------- /全部章节/10.2 内存屏障.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/10.2 内存屏障.pdf -------------------------------------------------------------------------------- /全部章节/10.3 linux源码中的内存屏障.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/10.3 linux源码中的内存屏障.pdf -------------------------------------------------------------------------------- /全部章节/10.4 C语言的volatile关键字.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/10.4 C语言的volatile关键字.pdf -------------------------------------------------------------------------------- /全部章节/10.5 Java语言的volatile关键字.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/10.5 Java语言的volatile关键字.pdf -------------------------------------------------------------------------------- /全部章节/2.1 CPU.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/2.1 CPU.pdf -------------------------------------------------------------------------------- /全部章节/2.2 虚拟内存.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/2.2 虚拟内存.pdf -------------------------------------------------------------------------------- /全部章节/2.3 进程的内存布局.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/2.3 进程的内存布局.pdf -------------------------------------------------------------------------------- /全部章节/2.4 字节顺序.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/2.4 字节顺序.pdf -------------------------------------------------------------------------------- /全部章节/3.1 汇编语法分类.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/3.1 汇编语法分类.pdf -------------------------------------------------------------------------------- /全部章节/3.2 汇编文件组成.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/3.2 汇编文件组成.pdf -------------------------------------------------------------------------------- /全部章节/3.3 寄存器分类.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/3.3 寄存器分类.pdf -------------------------------------------------------------------------------- /全部章节/3.4 汇编数据类型.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/3.4 汇编数据类型.pdf -------------------------------------------------------------------------------- /全部章节/3.5 汇编指令命名规则.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/3.5 汇编指令命名规则.pdf -------------------------------------------------------------------------------- /全部章节/4.1 移动指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.1 移动指令.pdf -------------------------------------------------------------------------------- /全部章节/4.10 浮点数除法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.10 浮点数除法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.11 整数转换指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.11 整数转换指令.pdf -------------------------------------------------------------------------------- /全部章节/4.12 浮点数转换指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.12 浮点数转换指令.pdf -------------------------------------------------------------------------------- /全部章节/4.13 跨寄存器扩展指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.13 跨寄存器扩展指令.pdf -------------------------------------------------------------------------------- /全部章节/4.14 自增指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.14 自增指令.pdf -------------------------------------------------------------------------------- /全部章节/4.15 自减指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.15 自减指令.pdf -------------------------------------------------------------------------------- /全部章节/4.16 左移指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.16 左移指令.pdf -------------------------------------------------------------------------------- /全部章节/4.17 右移指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.17 右移指令.pdf -------------------------------------------------------------------------------- /全部章节/4.18 位与指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.18 位与指令.pdf -------------------------------------------------------------------------------- /全部章节/4.19 位或指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.19 位或指令.pdf -------------------------------------------------------------------------------- /全部章节/4.2 寻址指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.2 寻址指令.pdf -------------------------------------------------------------------------------- /全部章节/4.20 位取反指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.20 位取反指令.pdf -------------------------------------------------------------------------------- /全部章节/4.21 位异或指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.21 位异或指令.pdf -------------------------------------------------------------------------------- /全部章节/4.22 整数比较指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.22 整数比较指令.pdf -------------------------------------------------------------------------------- /全部章节/4.23 浮点数比较指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.23 浮点数比较指令.pdf -------------------------------------------------------------------------------- /全部章节/4.24 跳转指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.24 跳转指令.pdf -------------------------------------------------------------------------------- /全部章节/4.25 CAS指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.25 CAS指令.pdf -------------------------------------------------------------------------------- /全部章节/4.26 函数指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.26 函数指令.pdf -------------------------------------------------------------------------------- /全部章节/4.27 内联汇编.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.27 内联汇编.pdf -------------------------------------------------------------------------------- /全部章节/4.28 综合,整数计算器.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.28 综合,整数计算器.pdf -------------------------------------------------------------------------------- /全部章节/4.29 综合,浮点数计算器.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.29 综合,浮点数计算器.pdf -------------------------------------------------------------------------------- /全部章节/4.3 整数减法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.3 整数减法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.3 整数加法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.3 整数加法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.30 综合,字符串比较器.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.30 综合,字符串比较器.pdf -------------------------------------------------------------------------------- /全部章节/4.5 整数乘法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.5 整数乘法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.6 整数除法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.6 整数除法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.7 浮点数加法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.7 浮点数加法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.8 浮点数减法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.8 浮点数减法指令.pdf -------------------------------------------------------------------------------- /全部章节/4.9 浮点数乘法指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/4.9 浮点数乘法指令.pdf -------------------------------------------------------------------------------- /全部章节/5.1 ELF文件格式.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/5.1 ELF文件格式.pdf -------------------------------------------------------------------------------- /全部章节/5.2 静态库.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/5.2 静态库.pdf -------------------------------------------------------------------------------- /全部章节/5.3 动态库.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/5.3 动态库.pdf -------------------------------------------------------------------------------- /全部章节/5.4 LDS脚本.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/5.4 LDS脚本.pdf -------------------------------------------------------------------------------- /全部章节/5.5 反汇编.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/5.5 反汇编.pdf -------------------------------------------------------------------------------- /全部章节/6.1 函数的结构.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.1 函数的结构.pdf -------------------------------------------------------------------------------- /全部章节/6.2 函数名.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.2 函数名.pdf -------------------------------------------------------------------------------- /全部章节/6.3 函数体.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.3 函数体.pdf -------------------------------------------------------------------------------- /全部章节/6.4 函数的入参.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.4 函数的入参.pdf -------------------------------------------------------------------------------- /全部章节/6.5 函数的返回值.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.5 函数的返回值.pdf -------------------------------------------------------------------------------- /全部章节/6.6 值传递与引用传递.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.6 值传递与引用传递.pdf -------------------------------------------------------------------------------- /全部章节/6.7 函数栈.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/6.7 函数栈.pdf -------------------------------------------------------------------------------- /全部章节/7.1 结构体struct.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.1 结构体struct.pdf -------------------------------------------------------------------------------- /全部章节/7.2 数组array.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.2 数组array.pdf -------------------------------------------------------------------------------- /全部章节/7.3 指针pointer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.3 指针pointer.pdf -------------------------------------------------------------------------------- /全部章节/7.4 循环与递归.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.4 循环与递归.pdf -------------------------------------------------------------------------------- /全部章节/7.5 缓存cache.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.5 缓存cache.pdf -------------------------------------------------------------------------------- /全部章节/7.6 索引index.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.6 索引index.pdf -------------------------------------------------------------------------------- /全部章节/7.7 C语言高效的秘密.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.7 C语言高效的秘密.pdf -------------------------------------------------------------------------------- /全部章节/7.8 C语言实现面向对象.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/7.8 C语言实现面向对象.pdf -------------------------------------------------------------------------------- /全部章节/8.1 并发写与CAS指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.1 并发写与CAS指令.pdf -------------------------------------------------------------------------------- /全部章节/8.2 非阻塞锁与CAS指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.2 非阻塞锁与CAS指令.pdf -------------------------------------------------------------------------------- /全部章节/8.3 阻塞锁与CAS指令.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.3 阻塞锁与CAS指令.pdf -------------------------------------------------------------------------------- /全部章节/8.4 伪共享.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.4 伪共享.pdf -------------------------------------------------------------------------------- /全部章节/8.5 线程的原理.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.5 线程的原理.pdf -------------------------------------------------------------------------------- /全部章节/8.6 协程的原理.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/8.6 协程的原理.pdf -------------------------------------------------------------------------------- /全部章节/9.1 percpu CPU隔离.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/9.1 percpu CPU隔离.pdf -------------------------------------------------------------------------------- /全部章节/9.2 threadlocal 线程隔离.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/9.2 threadlocal 线程隔离.pdf -------------------------------------------------------------------------------- /全部章节/9.3 atomic 原子操作.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/9.3 atomic 原子操作.pdf -------------------------------------------------------------------------------- /全部章节/9.4 ringbuffer 环形队列.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/全部章节/9.4 ringbuffer 环形队列.pdf -------------------------------------------------------------------------------- /程序原理_前言.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/程序原理_前言.txt -------------------------------------------------------------------------------- /程序原理_目录.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drink-cat/Book_Program-Principles/HEAD/程序原理_目录.txt --------------------------------------------------------------------------------