The text segment also maps your binary file in memory, but writes to this area earn your program a Segmentation Fault.
文本段同样会将二进制文件映射到内存,但文件映射区域的写入操作只能以程序收到段错误而告终。
A reserved area of memory where the CPU automatically saves the program counter and the contents of working registers when a program interrupt occurs.
内存中的一块留用存储区,当程序中断产生时,CPU自动在其中保存程序计数器和工作寄存器的内容。
The pointer will have some random value that, with luck, will point into an area of memory that is not available to your program and the kernel will kill your program before it can do any damage.
这个指针会有一个随机值,如果运气好的话,它将会指向一个你程序不可用的内存区域,那么内核将会在它造成什么伤害前干掉你的程序。
应用推荐