std::conditional详解 Posted on May 5, 2025 std::conditional 是 C++ 标准库 <type_traits> 头文件中提供的一个模板工具,用于在编译时根据布尔条件选择两种类型中的一种。其核心功能类似于三元条件运算符(?:),但作用于类型层面而非值层面。 [Read More] Tags: c++语法
Windbg使用说明 Posted on May 5, 2025 Windbg主要有两种方式,一是静态分析dump文件,二是动态调试程序,例如attach到已运行的程序或者使用Windbg启动调试程序 [Read More] Tags: windows开发
Z函数 Posted on April 13, 2025 引言 在字符串算法中,Z 函数(也称 Z-Algorithm)是一种经典且高效的预处理技术,能够在 O(n) 时间内计算一个字符串的 Z 数组。Z 数组在模式匹配、重复子串查找、最长公共前缀(LCP)查询等场景中有着广泛应用。本文将从基本定义、核心思想、线性算法流程、代码实现以及典型应用等方面,带你深入理解 Z 函数。 [Read More] Tags: Algorithm
合并访存 Posted on March 30, 2025 本文主要参考下面的视频 Requests, Wavefronts, Sectors Metrics: Understanding and Optimizing Memory [Read More] Tags: cuda learning
Memory Barrier笔记 --- Cache and MESI Protocol Posted on March 8, 2025 由于Store Buffer很小,随着大量的Store操作,Store Buffer会很快被填满,导致其后续的Store操作不得不等待,直到其他CPU中的Invalidate操作完成,并返回Invcalidate Ack消息。 [Read More] Tags: Memory Barrier