Gerhard Fiedler connectionbrazil.com> writes: > The only difference is that in reality either the stack or the heap would > have reached its limit earlier (when growing both in the same direction), > because you'd have to assign each one a certain size which may not coincide > with the exact runtime situation. As far as I understand it the os caches that map from virtual to real pages need to work much harder when there is a huge gap in the address space of the program. I am not sure how it's really done. And it's not necessarily 4G, it can be a 64 bit machine. The way I understand it, the stack has its own permissions (non executable among others, to avoid certain attacks) and its own segment, so it is/can be a whole 4G on a 32 bit machine. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist