摘要: Pahole Poke-a-hole Poke-a-hole (pahole) is an object-file analysis tool to find the size of the data structures, and the holes caused due to aligning 阅读全文
posted @ 2021-11-28 18:34 司空亦墨 阅读(965) 评论(1) 推荐(0) 编辑
摘要: Unified Modeling Language 笔记来源 事物 结构事物 类(class) 具有相同属性,方法, 关系和语义的对象集合 接口(interface) 指一个类或构件的一个服务操作集合, 是一组操作的规范不包含具体实现. 用例(user case) 堆一组动作序列的描述, 者写动作会 阅读全文
posted @ 2021-11-05 16:43 司空亦墨 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 设计模式 GoF(Gang of Four) 笔记来源 分类 目的 创建型 对象的创建 单例 原型 工厂方法 抽象工厂 建造者 结构型 布局 代理 桥接 适配器 装饰 外观 享元 组合 行为型 类,对象间如何相互协作 模板方法 策略 命令 职责链 状态 观察者 终结者 迭代器 访问者 备忘录 解释器 阅读全文
posted @ 2021-11-05 16:42 司空亦墨 阅读(101) 评论(0) 推荐(0) 编辑
摘要: CPP Primer Plus v6 内存模型和命名空间 单独编译 头文件 Gurading programing 单独编译与链接 存储周期 Cpp采用四种存储方案: 自动存储持续性 函数临时变量 静态存储持续性 static (静态存储区) 动态存储持续性 new delete (堆) 线程存储持 阅读全文
posted @ 2021-10-05 18:31 司空亦墨 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Kernel Debug in QEMU reference Environment List Utility Version QEMU 5.2.0 Kernel 5.11.9 Busybox 1.32.1 QEMU Installation (manual) Download QEMU sourc 阅读全文
posted @ 2021-09-18 23:06 司空亦墨 阅读(212) 评论(0) 推荐(0) 编辑
摘要: VIM SNIPPET Universal Markdown Java C ## CPP Universal Trigger Explosion date YYYY-MM-DD ddate MM DD,YYYY diso ISO format datetime todo todo uuid rand 阅读全文
posted @ 2021-08-26 09:30 司空亦墨 阅读(199) 评论(0) 推荐(0) 编辑
摘要: VIM Extended Functions 1. Table mode <prefix> + tm Toggle table mode enable/disable (:TableModeToggle) <prefix> + tr Align table (:TableModeRealign) < 阅读全文
posted @ 2021-08-26 09:14 司空亦墨 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Inert a shell command output :[n]r! command insert at nth line :r! command insert at current line Session mksession Oldfiles :browse oldfiles 光標垂直移動與定 阅读全文
posted @ 2021-08-26 09:12 司空亦墨 阅读(69) 评论(0) 推荐(0) 编辑
摘要: GDB GNU Debugger Start File Run Inspect Start gdb program gdb program core_name File file file_name core core_name exec executable_name symbol symbol_ 阅读全文
posted @ 2021-08-26 09:11 司空亦墨 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Cmake Parameter cmake 编译选项之修改CFLAGS和CXXFLAGS 全局编译 修改CmakeLists.txt,添加 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FL 阅读全文
posted @ 2021-08-26 09:10 司空亦墨 阅读(5427) 评论(0) 推荐(0) 编辑