how does stack growing work on windows and linux? -


i read windows programs call _alloca on function entry grow stack if need more 4k on stack. guss every time guard page hit windows allocates new page stack, therefore _alloca accesses stack in 4k steps allocate space.

i read applies windows. how linux (or other oses) solve problem if don't need _alloca?

linux relies on heavily optimized page fault handling, happens program pushes things on stack , page fault handler extend stack on fly.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -