Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Heap memory"

From eLinux.org
Jump to: navigation, search
(add link to memory debuggers page)
m (remove extraneous title)
Line 1: Line 1:
Heap Memory
 
 
 
Heap is the memory allocated in runtime during program execution. When memory is allocated using malloc() or calloc() for any pointer in a program, the size of the memory is allocated from the heap memory area and is assigned to the pointer. Until the pointer is freed using free() the heap memory is used by the pointer variable.
 
Heap is the memory allocated in runtime during program execution. When memory is allocated using malloc() or calloc() for any pointer in a program, the size of the memory is allocated from the heap memory area and is assigned to the pointer. Until the pointer is freed using free() the heap memory is used by the pointer variable.
  
 
See [[Memory Debuggers]] for tools that help analyze memory usage patterns, detect unbalanced allocations and frees, report buffer over- and under-runs, etc.
 
See [[Memory Debuggers]] for tools that help analyze memory usage patterns, detect unbalanced allocations and frees, report buffer over- and under-runs, etc.

Revision as of 23:21, 15 July 2010

Heap is the memory allocated in runtime during program execution. When memory is allocated using malloc() or calloc() for any pointer in a program, the size of the memory is allocated from the heap memory area and is assigned to the pointer. Until the pointer is freed using free() the heap memory is used by the pointer variable.

See Memory Debuggers for tools that help analyze memory usage patterns, detect unbalanced allocations and frees, report buffer over- and under-runs, etc.