Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

797 B

Deep Dive: Stack vs Heap

In most modern computer systems, memory management is split into two main parts: the stack and the heap. The stack is a section of memory that grows and shrinks automatically as functions are called and return. The data stored on the stack must have a known, fixed size. The heap is a section of memory that is used for data that needs to persist for longer than a single function-call. Data with dynamic size is stored on the heap. Rust, like many languages, has facilities for using these two types of memory, allowing developers fine-tuned control over memory usage.

Learn more from the following links: