malloc


Also found in: Acronyms, Wikipedia.

malloc

C's standard library routine for storage allocation. It takes the number of bytes required and returns a pointer to a block of that size. Storage is allocated from a heap which lies after the end of the program and data areas. Memory allocated with malloc must be freed explicitly using the "free" routine before it can be re-used.

gc is a storage allocator with garbage collection that is intended to be used as a plug-in replacement for malloc.
References in periodicals archive ?
For each malloc statement, they classify the anonymous objects created into interesting and summary nodes.
Our type checker verifies standard MASM assembly code in which type annotations and complex instructions such as malloc are assembly language macros.
However, recent operating systems have optimized commonly used buffer management system calls, such as bcopy and malloc.
The programmer can use compile and free_code to explicitly manage memory used for dynamic code, similarly to how one normally uses malloc and free.
Shared memory is allocated with special versions of sbrk and malloc.
In C, the programmer must explicitly allocate and free heap memory (using malloc and free).
Description of Boring Procedures Shown in Timeline Traces Procedure Description thread_setrun, Thread scheduling and memory management thread_continue, thread_block, switch_context, pmap_activate, get_thread_high malloc, Memory allocation free m_leadingspace, Mbuf manipulation m_freem, m_free, m_copym lninitdesc, LANCE (Ethernet) driver lnget arpresolve_local ARP layer ip_forwardscreen, IP layer in_canforward, in_broadcast, gw_forwardscreen bzero, Bulk memory operations bcopy
Jade also provides a memory allocation construct, new_nem, that programmers can use to dynamically allocate private objects, new_men has the same calling interface as the C malloc routine, taking as a parameter the size of the allocated private object.