How kernel, compiler, and C library work together: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m →‎C Library: Linked to orphan
mNo edit summary
Line 95:
>> I think _alloca() is for stack-probing, which is required by Windows.<br>
> What is stack probing?<br>
By default, Windows reserves 1 meg of virtual memory for the stack. No page of stack memory is actually allocated (commitedcommitted) until the page is accessed. This is demand-allocation.
 
The page beyond the top of the stack is the guard page. If this page is accessed, memory will be allocated for it, and the guard page moved downward by 4K (one page). Thus, the stack can grow beyond the initial 1 meg.