摘要: ###mit os lab2 ####Exrecise .1 In the file kern/pmap.c, you must implement code for the following functions (probably in the order given). mem_init() 阅读全文
posted @ 2021-02-26 17:50 kingchou 阅读(170) 评论(0) 推荐(0)
摘要: ###mit os lab1 ####物理地址空间 依据实验文档如下图 ####Exercise 1 ... ####Exercise 2 Exercise 2. Use GDB's si (Step Instruction) command to trace into the ROM BIOS f 阅读全文
posted @ 2021-02-18 21:22 kingchou 阅读(212) 评论(0) 推荐(0)
摘要: IO 库 istrream(输入流)类型, 提供输入操作。 ostream(输出流)类型,提供输出操作。 cin, 一个istream对象,从标准输入读取数据。 cout,一个ostream对象,向标准输出写入。 cerr,一个ostream对象,通常用于输出程序错误信息,写入标准错误。 ">>运算 阅读全文
posted @ 2020-10-29 20:17 kingchou 阅读(99) 评论(0) 推荐(0)
摘要: const的使用 顶层const,底层const: 指针既可以是顶层const(top-level const), 也可以是底层const(low-level const)。顶层const可以表示任意的对象是常量。 const形参和实参: 当用实参初始化形参时,形参顶层const会被自动忽略掉。当形 阅读全文
posted @ 2020-10-16 23:03 kingchou 阅读(79) 评论(0) 推荐(0)