Allocation Size Limits
The largest possible memory block malloc can allocate depends on the host system, particularly the size of physical memory and the operating system implementation. Theoretically, the largest number should be the maximum value that can be held in a size_t type, which is an implementation-dependent unsigned integer representing the size of an area of memory. The maximum value is 2CHAR_BIT × sizeof(size_t) − 1, or the constant SIZE_MAX in the C99 standard.
Read more about this topic: C Dynamic Memory Allocation
Famous quotes containing the words size and/or limits:
“Our brains are no longer conditioned for reverence and awe. We cannot imagine a Second Coming that would not be cut down to size by the televised evening news, or a Last Judgment not subject to pages of holier-than-Thou second- guessing in The New York Review of Books.”
—John Updike (b. 1932)
“... there are no limits to which powers of privilege will not go to keep the workers in slavery.”
—Mother Jones (18301930)