Article December 08, 2019

寄存器知识

Words count 1.5k Reading time 1 mins.

esp:寄存器存放当前线程的栈顶指针

ebp:寄存器存放当前线程的栈底指针

eip:寄存器存放下一个CPU指令存放的内存地址,当CPU执行完当前的指令后,从EIP寄存器中读取下一条指令的内存地址,然后...

Read article

Article November 28, 2019

万恶指针初探

Words count 24k Reading time 22 mins.

1.1基本概念

​ 指针数组:变量首先是数组,指针放在前面理所应当起修饰作用,数组中所有存放的元素都是指针类型。

​ 数组指针:侧重点在于指针,数组起修饰作用,这个指针指向一个数组,(首地址)

指针数组

1
char *a[3]={"BOMBBUR","your","world"}
2
//注意结合顺序,[]结合优先于*,先指明a是数组

该指针数组大小有12个字节,因为存放了3个char 类型指针

补充内存映象图

...
内存映象图 内容 权限
栈区 函数中的普通变量 可读可写
Read article

Article November 28, 2019

第一步开始

Words count 141 Reading time 1 mins.


咕咕咕了这么久终于发出了第一篇博客,开始吧,Nie

Read article

Article November 28, 2019

Hello World

Words count 2.4k Reading time 2 mins.

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Create a new post

1
$ hexo new "My New Post"

More info: Writing...

Read article
0%