由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 再问一个弱问题:为什么程序地址0-0x08000000是不可用的 (转载)
相关主题
一个简单的小问题作为返回值得实参是用指针还是引用比较好?
C++ Q05: pointer to constant variable一道面试题
Reversing a singly linked listdereference a NULL pointer in C
Reverse Words in a String纯虚函数问题
delete this problem一个C的问题:从一个instance到多个instance的改动
C 多线程的一个问题问个程序问题
一个小问题C++ Q87: What is wrong with this swap function? (转载)
问个C++中重复删除指针的问题c ptr question
相关话题的讨论汇总
话题: null话题: 0x08000000话题: pointers话题: 128m话题: 为什么
进入Programming版参与讨论
1 (共1页)
f******e
发帖数: 164
1
【 以下文字转载自 Linux 讨论区 】
发信人: francise (小飞猫), 信区: Linux
标 题: 再问一个弱问题:为什么程序地址0-0x08000000是不可用的
发信站: BBS 未名空间站 (Sun Mar 30 21:08:02 2008)
为什么程序address space地址0-0x08000000是不可用的?
这篇文章(http://lwn.net/Articles/91829/)里说:
The very bottom part of the address space is unused; it is there to catch
NULL pointers and such.
可是我还是不能理解,什么是catch NULL pointers?还有为什么要预留这么多空间(
128M)来catch NULL pointers?
f******e
发帖数: 164
2
我知道no physical memory reversed for the 128M,我的意思是说这是一种address
space waste吧?NULL完全可以用0来代表,为什么要128M空间呢?
1 (共1页)
进入Programming版参与讨论
相关主题
c ptr questiondelete this problem
请教两道linux面试题目C 多线程的一个问题
为什么virtual memory的0地址不能给用户程序访问一个小问题
C++问题: 指针变量是哪里产生的?问个C++中重复删除指针的问题
一个简单的小问题作为返回值得实参是用指针还是引用比较好?
C++ Q05: pointer to constant variable一道面试题
Reversing a singly linked listdereference a NULL pointer in C
Reverse Words in a String纯虚函数问题
相关话题的讨论汇总
话题: null话题: 0x08000000话题: pointers话题: 128m话题: 为什么