# How memory is allocated

DevFeed: [How memory is allocated](<https://devfeed.tech/articles/how-memory-is-allocated-35416.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/how-memory-is-allocated/>)

Author: Graham King

Published: 2015-07-10T15:38:57Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Assembly](<https://devfeed.tech/topics/assembly.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [process](<https://devfeed.tech/tags/process.md>), [software](<https://devfeed.tech/tags/software.md>), [unix](<https://devfeed.tech/tags/unix.md>)

## AI overview

A tutorial explaining how memory allocation works in Linux amd64 assembly without malloc. It describes the process virtual address space, heap and stack layout, and using the brk system call to move the program break and allocate or release heap memory.

## Source excerpt

Diving deep: How to allocate memory without malloc in Linux assembly.