上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: ```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)
摘要: 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)
摘要: 目录proj3objectstipsPart ATask1 ALUtipsinfo:testinginspecting testsTask2 register filetipstestingtask3 the addi instructioninfo:memoryinfo: branch compa 阅读全文
posted @ 2023-06-01 09:32 ijpq 阅读(1089) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1481923/202305/1481923-20230531170817218-832032778.png) 阅读全文
posted @ 2023-05-31 17:08 ijpq 阅读(21) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1481923/202305/1481923-20230510194212392-1846559360.png) ![](https://img2023.cnblogs.com/blog/1481923/202305/1481923-20230510194225583-1336513725.png) 阅读全文
posted @ 2023-05-10 19:42 ijpq 阅读(9) 评论(0) 推荐(0)
摘要: 页表系统 一级页表 内存地址64bit,虚拟内存空间使用low39位(蓝色部分,EXT是不使用的地址位);物理内存地址空间使用56位(红色部分)。 虚拟地址的low39中,高27位是index,用来索引页表中的具体"一行"页表项。一个页表项在物理内存中是4096Byte,offset用来索引具体一个 阅读全文
posted @ 2023-04-30 19:17 ijpq 阅读(195) 评论(0) 推荐(0)
摘要: 静态变量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)
摘要: 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)
摘要: ![](https://img2023.cnblogs.com/blog/1481923/202304/1481923-20230423212942252-880033108.png) 阅读全文
posted @ 2023-04-23 21:29 ijpq 阅读(32) 评论(0) 推荐(0)
摘要: 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 下一页