上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页
摘要: 提问:为什么我的Makefile中存在同名目标,却没有报错?(一个目标下有命令,另一个目标下没有命令) 详细描述:我正在做PA2.2中的蓝框任务:阅读相关Makefile, 尝试理解abstract-machine是如何生成native的可执行文件的。 使用 native 作为运行时环境并运行 re 阅读全文
posted @ 2022-08-21 14:30 yinhuachen 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 安装vim插件的各种方式:https://www.makeuseof.com/install-vim-plugins/ 1. CtrlP 直接使用文件名定位项目中的文件 2. NERDTree 项目文件浏览器 3. snazzy 美化 4. airline 搞个状态栏 5. coc 用于代码补全 6 阅读全文
posted @ 2022-08-14 21:57 yinhuachen 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.实时演示Markdown编译后效果 补充点Markdown: 表格中可以用<++>占位 2. q宏自动化 3. :r !ls 可以把ls命令的结果复制到vim里 : vsplit 左右分屏 : split 上下分屏 :source $MYVIMRC 重新加载我的vim配置文件 : e <文件名> 阅读全文
posted @ 2022-08-14 15:33 yinhuachen 阅读(109) 评论(0) 推荐(0) 编辑
摘要: volatile 关键字一般用于 MMIO寄存器、通信、中断服务中。 来源:https://stackoverflow.com/questions/246127/why-is-volatile-needed-in-c 阅读全文
posted @ 2022-08-08 15:32 yinhuachen 阅读(103) 评论(0) 推荐(0) 编辑
摘要: gdb默认无法调试宏函数,需要做以下特殊处理 1. 把项目中的宏函数展开 修改Makefile,产生所有中间文件: gcc -E -P *.c -o *.i 使用 -P 的原因是去掉 linemarkers,因为linemarker会给gdb提供调试信息,linemarker存在的话,gdb在调试可 阅读全文
posted @ 2022-08-07 23:24 yinhuachen 阅读(696) 评论(0) 推荐(1) 编辑
摘要: 1. hexdump 一个例子:hexdump -e '2/4 "%08x " "\n"' build/dummy-riscv64-nemu.bin 2. xxd https://unix.stackexchange.com/questions/282215/how-to-view-a-binary 阅读全文
posted @ 2022-08-07 21:42 yinhuachen 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 看这里:https://en.wikichip.org/wiki/risc-v/registers 阅读全文
posted @ 2022-08-07 18:42 yinhuachen 阅读(167) 评论(0) 推荐(0) 编辑
摘要: #: ##:粘连两个符号 答案来源:https://blog.csdn.net/qq_37858386/article/details/78919163 阅读全文
posted @ 2022-08-07 18:13 yinhuachen 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 使用好 gcc 和 objdump 的组合 来源:https://stackoverflow.com/questions/70154049/how-can-i-resolve-risc-v-assembly-pseudo-instructions-to-true-risc-v-instruction 阅读全文
posted @ 2022-08-07 14:15 yinhuachen 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 参开这里: https://www.gnu.org/software/binutils/ 阅读全文
posted @ 2022-08-06 15:34 yinhuachen 阅读(42) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页