上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: Operator[] The performance of [] in C and C++ is different. e.g., when you excute A[index] If A is a object, it will call the operator[] If A is a poi 阅读全文
posted @ 2023-09-22 21:47 0x7F 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 大纲 指令集与简单CPU处理器设计 复杂CPU流水线与乱序执行(指令级并行) 高速缓存、内存及存储器(存储) 多线程与多核系统(线程级并行) 向量处理器与GPU(数据级并行) 微码与超长指令字处理器 片上网络 仓库级计算机与云计算、分布式 系统评价与性能分析 硬件安全、硬件虚拟化和加速 指令集与简单 阅读全文
posted @ 2023-09-21 10:37 0x7F 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Wildcard The wildcard in makefile is similar with macro in C/C++, it isn't similar with wildcard in linux shell, so it doesn't expend automatically. o 阅读全文
posted @ 2023-09-16 17:49 0x7F 阅读(4) 评论(0) 推荐(0) 编辑
摘要: After we install Xcode Command Line Tools, we will get gcc and g++ in /Library/Developer/CommandLineTools/usr/bin and the same contents in /usr/bin. B 阅读全文
posted @ 2023-09-15 17:29 0x7F 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 关于访问控制,是CPU基于段实现的一种机制。而所谓的高低特权指令和数据,则是指高低特权的指令和数据。 高特权指令可以访问高特权和低特权数据,低特权指令仅可以访问低特权数据 注意以上仅仅是指令访问数据的规则,对于指令调用指令与之不同,无论是高特权还是低特权指令,均不能调用不同权限的指令。换句话说,相同 阅读全文
posted @ 2023-09-11 19:17 0x7F 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Asynchronization (Multithreading) The first thing we need to do is understanding the correlations between multithreading and parallel computing. Multi 阅读全文
posted @ 2023-09-10 22:06 0x7F 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Vectorization(矢量化) Before we understand the vectorization, we can see a common secnario. We have a array that has 100 float numbers, we want to calcul 阅读全文
posted @ 2023-09-07 18:47 0x7F 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The contrast of format between AT&T and Intel. ![](https://cdn.jsdelivr.net/gh/gaohongy/cloudImages@master/202309041627121.png) 阅读全文
posted @ 2023-09-04 16:30 0x7F 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Using __cplusplus to check the version of C++ that is used by compiler. Reference [1] Replacing text macros [2] Standard Predefined Macros 阅读全文
posted @ 2023-09-03 20:57 0x7F 阅读(2) 评论(0) 推荐(0) 编辑
摘要: The collocation between const and original pointer is confused to many people. There are two usages of it. The first one is a variable pointer that po 阅读全文
posted @ 2023-09-03 16:15 0x7F 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 18 下一页