当前位置: 首页 > news >正文

宁波专业制作网站cms大型门户网站 源码

宁波专业制作网站,cms大型门户网站 源码,高级感ppt模板,wordpress小工具上下LAB 网页#xff1a;https://pdos.csail.mit.edu/6.S081/2023/labs/traps.html 任务1#xff1a;RISC-V assembly (完成) 初步看问题要求#xff0c;这是一道文科题(问答题) 在你的 xv6 仓库中有一个文件 user/call.c。执行 make fs.img 会对其进行编译#xff0c;并生成…LAB 网页https://pdos.csail.mit.edu/6.S081/2023/labs/traps.html 任务1RISC-V assembly (完成) 初步看问题要求这是一道文科题(问答题) 在你的 xv6 仓库中有一个文件 user/call.c。执行 make fs.img 会对其进行编译并生成一个可读的汇编版本文件 user/call.asm。 阅读 call.asm 中关于函数 g、f 和 main 的代码。RISC-V 的指令手册可以在参考页面中找到。请在 answers-traps.txt 文件中回答以下问题 Q: Which registers contain arguments to functions? For example, which register holds 13 in main’s call to printf? A: 根据题意我们先运行 make fs.img 生成 call.asm 随后阅读 user/call.c 和 user/call.asm 的代码如下 可以看到储存函数参数的寄存器是 a0, a1, a2。其中储存整数 13 的寄存器是 a2 Q: Where is the call to function f in the assembly code for main? Where is the call to g? (Hint: the compiler may inline functions.) A: main 函数的汇编代码中没有函数 f 和 g 的函数调用。它们在编译阶段被编译器优化掉了。 Q: At what address is the function printf located? A:搜索 call.asm 中 printf 的位置如下 可以看到是 0x64a Q: What value is in the register ra just after the jalr to printf in main? A: 运行 jalr 指令后寄存器 ra 的值是 0x38。 方式使用 make qemu-gdb 启动 xv6随后对 0x34 (jalr指令的地址) 打断点。 启动 xv6 后运行 call 程序qemu-gdb 会停留在 0x34 处。 此时运行 si 命令执行 0x34 的 jalr 指令可以看到 pc 跳转到了 0x64a 处。 再运行 info registers ra即可看到 ra 寄存器的值为 0x38 Q: Run the following code.unsigned int i 0x00646c72;printf(H%x Wo%s, 57616, i);What is the output? Heres an ASCII table that maps bytes to characters. The output depends on that fact that the RISC-V is little-endian. If the RISC-V were instead big-endian what would you set i to in order to yield the same output? Would you need to change 57616 to a different value?Heres a description of little- and big-endian and a more whimsical description.A:输出为 “He110 World” 如果 RISCV 是大端那么 i 改为 0x726c6400 不需要修改 57616 (这里的回答不用太正确反正不是代码) Q In the following code, what is going to be printed after y? (note: the answer is not a specific value.) Why does this happen?printf(x%d y%d, 3); A: y 后的数字是个垃圾数字 (junk value)。因为编译器仅仅给 a0 和 a1 寄存器赋值了没有给 y%d 的 %d 所对应的存储空间赋值 任务2Backtrace (doing) TODO: here
http://www.w-s-a.com/news/21907/

相关文章:

  • joomla网站模板一个人做网站的swot
  • 南京建设网站需要多少钱深圳专业网站建设制作价格
  • 天河建网站装修公司线上推广方式
  • 超市网站怎么做的目前最流行的拓客方法
  • 做文字logo的网站贵阳商城网站开发
  • 沧州有没有做网站的中国建筑设计
  • 建设网站 系统占用空间在线代理浏览网站
  • 做海报有什么参考的网站网站建设验收合同
  • 酒店网站制作wordpress文章评论设置
  • 造一个官方网站wordpress mysql类
  • 怎么做卡商网站河南做网站找谁
  • 网站建设招标方案模板上线啦 图谱智能网站
  • 龙口网站建设公司哪家好wordpress 上传类型
  • 做外贸主要看什么网站服务平台的宗旨
  • 宜昌营销型网站购买网站
  • 如何查询网站建设时间wordpress 框架解析
  • 网站建设年终总结网站建设公司顺义
  • 网页给别人做的 网站后续收费吗获取更多付费流量
  • 金融交易网站建设金融 网站建设
  • 长沙网站建设联系电话怎么做表格
  • 网站怎么做域名实名认证龙华网站 建设信科网络
  • 企业网站规划方案网站是做排行榜
  • 万维网网站个人申请网站
  • 我想做网站怎么做昆山网站建设 全是乱码
  • 单位做网站怎么做圣诞树html网页代码
  • 网页开发与网站开发企业网站托管服务常用指南
  • 一站式服务图片临沂做进销存网站
  • 鸣蝉智能建站标准物质网站建设模板
  • 电商网站建设技术员的工作职责商业网站制作价格
  • 网站html模板免费下载公司的网站建设费用入什么科目