09 2023 档案
摘要:lambda structure [capture list] (parameter list) -> return type { function body } (parameter list) and return type are optional Value and Reference ca
阅读全文
摘要: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
阅读全文
摘要:大纲 指令集与简单CPU处理器设计 复杂CPU流水线与乱序执行(指令级并行) 高速缓存、内存及存储器(存储) 多线程与多核系统(线程级并行) 向量处理器与GPU(数据级并行) 微码与超长指令字处理器 片上网络 仓库级计算机与云计算、分布式 系统评价与性能分析 硬件安全、硬件虚拟化和加速 指令集与简单
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:关于访问控制,是CPU基于段实现的一种机制。而所谓的高低特权指令和数据,则是指高低特权的指令和数据。 高特权指令可以访问高特权和低特权数据,低特权指令仅可以访问低特权数据 注意以上仅仅是指令访问数据的规则,对于指令调用指令与之不同,无论是高特权还是低特权指令,均不能调用不同权限的指令。换句话说,相同
阅读全文
摘要:Asynchronization (Multithreading) The first thing we need to do is understanding the correlations between multithreading and parallel computing. Multi
阅读全文
摘要: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
阅读全文
摘要:The contrast of format between AT&T and Intel. 
阅读全文
摘要:Using __cplusplus to check the version of C++ that is used by compiler. Reference [1] Replacing text macros [2] Standard Predefined Macros
阅读全文
摘要: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
阅读全文
摘要:关于模版元编程和函数式编程,涉及到的是C++的5种编程范式,i.e. 1. 面向过程 2. 面向对象 3. 函数式 4. 范型 5. 模版元编程 模版元编程 元编程(metaprogramming)是指编写能够生成或操作其他程序的程序。 1. 写在尖括号内的包含两种内容:模版类型参数和非模版类型参数
阅读全文