上一页 1 2 3 4 5 6 7 8 ··· 18 下一页

2020年3月14日

rtems chain

摘要: rtems 4.6 涉及文件 chain.h (cpukit\libcsupport\include)提供用户程序接口,用户程序接口无下划线开头,内核程序使用下划线开头 /* chain.h * * This include file contains all the constants and s 阅读全文

posted @ 2020-03-14 12:21 yanhc 阅读(211) 评论(0) 推荐(0)

2020年2月23日

gnu make

摘要: 模式替换 Another type of substitution reference lets you use the full power of the patsubst function. It has the same form ‘$(var:a=b)’ described above, e 阅读全文

posted @ 2020-02-23 22:02 yanhc 阅读(174) 评论(0) 推荐(0)

工程引用libm.a文件的sin函数后

摘要: 更改前后的main.c //#include <math.h> int var_data = 1; int var_bss; int main() { double d; // d = sin(3.14/2); return 0; } View Code #include <math.h> int 阅读全文

posted @ 2020-02-23 20:39 yanhc 阅读(352) 评论(0) 推荐(0)

2020年2月16日

3803 register initialization

摘要: wim寄存器 window invalid mask,窗口无效屏蔽寄存器,如果某bit为1,则表示该窗口无效,不能使用。 初始化,设置%psr.CWP=0,即当前使用win0;设置wim=2,即只有win1不能使用,win0,7,6,5,4,3,2都能使用。 save时,CWP-1,变为窗口7;再s 阅读全文

posted @ 2020-02-16 19:21 yanhc 阅读(278) 评论(0) 推荐(0)

bin utilities related

摘要: objdump -S, 如果有源程序的话,将源程序与汇编代码混合在一起。 使用该选项时,输入的目标文件需要有调试信息,即用gcc -g生成的目标文件才可以,因为,调试信息中才有源程序信息。 --adjust-vma=offset 对于a.out,似乎没有编码节的地址,因此,dump出来的节内容都是从 阅读全文

posted @ 2020-02-16 14:22 yanhc 阅读(255) 评论(0) 推荐(0)

2020年2月15日

ELF文件之九——使用链接脚本-2个函数-data-bss-temp-call-debug信息-struct

摘要: main.c int enable; int test = 1; struct aaa { int membera; char memberb; }s_aaa; int main() { int temp; add(); del(); s_aaa.membera = 1; s_aaa.memberb 阅读全文

posted @ 2020-02-15 15:12 yanhc 阅读(200) 评论(0) 推荐(0)

ELF文件之八——使用链接脚本-2个函数-data-bss-temp-call-debug信息

摘要: gcc编译选项可以设置生成调试信息, debug信息格式有stabs,coff,xcoff,dwarf。 常用的有两种格式,stab和dwarf,stab较早,dwarf较新。两种格式介绍:https://www.ibm.com/developerworks/cn/opensource/os-deb 阅读全文

posted @ 2020-02-15 11:33 yanhc 阅读(748) 评论(0) 推荐(0)

2020年2月12日

sparc v8 汇编语言语法

该文被密码保护。 阅读全文

posted @ 2020-02-12 18:37 yanhc 阅读(74) 评论(0) 推荐(0)

2020年2月9日

关于ELF文件和BIN文件

该文被密码保护。 阅读全文

posted @ 2020-02-09 22:27 yanhc 阅读(65) 评论(0) 推荐(0)

ELF文件之七——使用链接脚本-2个函数-data-bss-temp-call

摘要: main.c int enable; int test = 1; int main() { int temp; add(); return 0; } int add() { return 0; } View Code o反汇编的地址都是0起始,elf的地址都是映射后的地址。 多了一个.rela.te 阅读全文

posted @ 2020-02-09 20:20 yanhc 阅读(254) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 18 下一页

导航