会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0x01
computer arch/parallel programming/
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
15
下一页
2023年8月28日
理解move
摘要: ```cpp #include #include #include #include using namespace std; struct B { int v = 100; ~B() { v = 0; } }; struct A { A(B* p) { aa = p; } B* aa = null
阅读全文
posted @ 2023-08-28 16:24 ijpq
阅读(13)
评论(0)
推荐(0)
2023年7月16日
meta program - 实例化
摘要: EXAMPLE ONE template <typename T, T b, uint32_t e> struct pow : std::integral_constant<decltype(b * 1), b * pow<T, b, e - 1>::value> {}; template <typ
阅读全文
posted @ 2023-07-16 15:53 ijpq
阅读(28)
评论(0)
推荐(0)
2023年6月1日
cs61c - proj3
摘要: 目录proj3objectstipsPart ATask1 ALUtipsinfo:testinginspecting testsTask2 register filetipstestingtask3 the addi instructioninfo:memoryinfo: branch compa
阅读全文
posted @ 2023-06-01 09:32 ijpq
阅读(1089)
评论(0)
推荐(0)
2023年5月31日
CRTP - 编译期多态的屎山design
摘要: 
阅读全文
posted @ 2023-05-31 17:08 ijpq
阅读(21)
评论(0)
推荐(0)
2023年5月10日
模板显式实例化相关
摘要:  
阅读全文
posted @ 2023-05-10 19:42 ijpq
阅读(9)
评论(0)
推荐(0)
2023年4月30日
xv6页表
摘要: 页表系统 一级页表 内存地址64bit,虚拟内存空间使用low39位(蓝色部分,EXT是不使用的地址位);物理内存地址空间使用56位(红色部分)。 虚拟地址的low39中,高27位是index,用来索引页表中的具体"一行"页表项。一个页表项在物理内存中是4096Byte,offset用来索引具体一个
阅读全文
posted @ 2023-04-30 19:17 ijpq
阅读(195)
评论(0)
推荐(0)
2023年4月25日
static成员变量 singleton
摘要: 静态变量a地址的高20位加载到a5中, a5的值(static a的高20位地址) + 偏移值(static a的低12位地址) -> 加载到a5中(现在a5中保存了静态变量a的32位地址) 把静态变量a的地址写入到返回值中。 如果声明为返回类型为&,实际也一样 如果使用返回void的方式来实现静态
阅读全文
posted @ 2023-04-25 15:43 ijpq
阅读(11)
评论(0)
推荐(0)
2023年4月23日
带有初始化列表的ctor
摘要: https://en.cppreference.com/w/cpp/language/copy_initialization.html /* ASM generation compiler returned: 0 Execution build compiler returned: 0 Progra
阅读全文
posted @ 2023-04-23 21:32 ijpq
阅读(21)
评论(0)
推荐(0)
最具歧义性的解析
摘要: 
阅读全文
posted @ 2023-04-23 21:29 ijpq
阅读(32)
评论(0)
推荐(0)
2023年4月21日
xv6 exec系统调用
摘要: exec是一个创建用户地址空间的系统调用。根据一个存储在文件系统中的file来创建用户地址空间。 具体来说, int exec(char *path, char **argv) exec 使用 namei 打开指定的二进制文件路径(kernel/exec.c:26)。 exec 读取ELF(可执行与
阅读全文
posted @ 2023-04-21 19:09 ijpq
阅读(256)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
15
下一页