2023年7月18日

typedef

摘要: typedef: 用户自定义类型 通常与 struct 或 enum 联用 1. 与 struct 联用 typedef struct { // 2D bit[31:0] int_val[`DIE_NUM][`INST_NUM]; str str_val[`DIE_NUM][`INST_NUM]; 阅读全文

posted @ 2023-07-18 11:18 老头去打猎 阅读(22) 评论(0) 推荐(0) 编辑

2022年7月26日

windos SVN update 失败,

摘要: 博客转载: https://www.cnblogs.com/songForU/p/10724932.html svn报“Previous operation has not finished; run 'cleanup' if it was interrupted”的错误。 把 clean up 所 阅读全文

posted @ 2022-07-26 10:08 老头去打猎 阅读(83) 评论(0) 推荐(0) 编辑

2022年7月7日

grep 打印匹配字符串的前后几行

摘要: grep -A n 可以显示匹配内容以及后面的n行内容 grep -B n 可以显示匹配内容以及前面的n行内容 grep -C n 可以显示匹配内容以及前后面的n行内容 eg: grep -B 5 -rn "hash_value.*in_str" . > tmp.log //查找当前目录下,含有 h 阅读全文

posted @ 2022-07-07 15:32 老头去打猎 阅读(2149) 评论(0) 推荐(0) 编辑

2022年6月20日

shell 教程网址

摘要: https://www.runoob.com/linux/linux-shell.html 阅读全文

posted @ 2022-06-20 10:52 老头去打猎 阅读(24) 评论(0) 推荐(0) 编辑

2021年11月23日

内网打开浏览器

摘要: Firefox 只能在一个 EOD 中打开是 firefox 自身的限制,您可以另外再开一个 chromium 浏览器查阅资料,路径如下: /tools/ctools/rh6.7/chromium-browser/72.0/bin/chromium 阅读全文

posted @ 2021-11-23 12:57 老头去打猎 阅读(208) 评论(0) 推荐(0) 编辑

2021年10月22日

linux 查看文件的前几行 或者 某些行

摘要: 转载自: http://www.manongjc.com/detail/9-xrlitgtehznxeqs.html inux 如何显示一个文件的某几行(中间几行) 【一】从第3000行开始,显示1000行。即显示3000~3999行 cat filename | tail -n +3000 | h 阅读全文

posted @ 2021-10-22 16:30 老头去打猎 阅读(3269) 评论(0) 推荐(0) 编辑

2021年10月21日

删除 pending changlist

摘要: Run p4 opened to see all your opened files and run p4 revert to revert them. Then run p4 changes -c your-client-name -s pending to see all your pendin 阅读全文

posted @ 2021-10-21 11:30 老头去打猎 阅读(779) 评论(0) 推荐(0) 编辑

2021年9月14日

git

摘要: git revert git log -n 2 /// 拿到最新的两个版本 git reset --hard number // revert 阅读全文

posted @ 2021-09-14 15:10 老头去打猎 阅读(21) 评论(0) 推荐(0) 编辑

2021年9月9日

dos2unix

摘要: 使用git 的时候碰到git将unix换行符转换为windows换行符的问题,需要使用dos2unix命令将文件转换为unix格式。 dos2unix命令用来将DOS格式的文本文件转换成UNIX格式的(DOS/MAC to UNIX text file format converter)。DOS下的 阅读全文

posted @ 2021-09-09 14:55 老头去打猎 阅读(214) 评论(0) 推荐(0) 编辑

2021年9月1日

ADM manual V2 :: chapter 1: system programing

摘要: System Programing 第一章主要讲系统进程的基本概念, 为软件写汇编的程序员提供信息。编写操作系统、加载器、链接器、设备驱动程序或需要访问系统资源的实用程序的程序员。这些系统资源通常只对以最高权限级别(CPL=0)运行的软件可用,也称为特权软件。CPL 共四级, 0~3, CPL=0 阅读全文

posted @ 2021-09-01 16:19 老头去打猎 阅读(73) 评论(0) 推荐(0) 编辑

导航