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
Post a Comment