上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: #include <vector> #include <utility> // 对于 std::move #include <type_traits> #include <iostream> using namespace std; template<typename T> struct A { A 阅读全文
posted @ 2024-01-16 17:06 ijpq 阅读(8) 评论(0) 推荐(0) 编辑
摘要: problem1 How many bytes is the program? For the above x86 assembly code, how many bytes of instructions need to be fetched if x = 0x01020304 and n = 5 阅读全文
posted @ 2023-12-13 12:23 ijpq 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 3.4 Note how the mix of different types of instructions vary between benchmarks. Record the mix for each benchmark. (Remember: Do not provide raw dump 阅读全文
posted @ 2023-12-10 23:37 ijpq 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/1481923/202311/1481923-20231129110844813-948831792.png) 阅读全文
posted @ 2023-11-29 11:08 ijpq 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 参考: code: https://github.com/mit-pdos/xv6-riscv book: https://pdos.csail.mit.edu/6.828/2021/xv6/book-riscv-rev2.pdf note: https://mit-public-courses-c 阅读全文
posted @ 2023-10-31 18:26 ijpq 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Traps and System calls 什么是trap 在xv6操作系统中,"trap"是指cpu暂时跳出正常执行流程,从用户态切换到内核态的一种机制。这种切换,在xv6系统中,在这3个情况下发生:系统调用、异常、外部设备触发了中断。 系统调用就是使用了ecall指令,之前lab中增加过tra 阅读全文
posted @ 2023-10-18 13:48 ijpq 阅读(37) 评论(0) 推荐(0) 编辑
摘要: # sync_cnblog 阅读全文
posted @ 2023-09-02 09:51 ijpq 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ```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 阅读(8) 评论(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 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 目录proj3objectstipsPart ATask1 ALUtipsinfo:testinginspecting testsTask2 register filetipstestingtask3 the addi instructioninfo:memoryinfo: branch compa 阅读全文
posted @ 2023-06-01 09:32 ijpq 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页