上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页
摘要: 安装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 阅读(47) 评论(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 阅读(132) 评论(0) 推荐(0)
摘要: volatile 关键字一般用于 MMIO寄存器、通信、中断服务中。 来源:https://stackoverflow.com/questions/246127/why-is-volatile-needed-in-c 阅读全文
posted @ 2022-08-08 15:32 yinhuachen 阅读(117) 评论(0) 推荐(0)
摘要: gdb默认无法调试宏函数,需要做以下特殊处理 1. 把项目中的宏函数展开 修改Makefile,产生所有中间文件: gcc -E -P *.c -o *.i 使用 -P 的原因是去掉 linemarkers,因为linemarker会给gdb提供调试信息,linemarker存在的话,gdb在调试可 阅读全文
posted @ 2022-08-07 23:24 yinhuachen 阅读(822) 评论(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 阅读(55) 评论(0) 推荐(0)
摘要: 看这里:https://en.wikichip.org/wiki/risc-v/registers 阅读全文
posted @ 2022-08-07 18:42 yinhuachen 阅读(226) 评论(0) 推荐(0)
摘要: #: ##:粘连两个符号 答案来源:https://blog.csdn.net/qq_37858386/article/details/78919163 阅读全文
posted @ 2022-08-07 18:13 yinhuachen 阅读(222) 评论(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 阅读(75) 评论(0) 推荐(0)
摘要: 参开这里: https://www.gnu.org/software/binutils/ 阅读全文
posted @ 2022-08-06 15:34 yinhuachen 阅读(62) 评论(0) 推荐(0)
摘要: 答案1:关掉最大打印限制 https://blog.csdn.net/qq_34347375/article/details/123216780 答案2:打印数组中任意连续值 https://wizardforcel.gitbooks.io/100-gdb-tips/content/print-co 阅读全文
posted @ 2022-08-05 10:37 yinhuachen 阅读(252) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页