-
Rust용어)스택(stack)과 힙(heap) 개념 이해하기-소유권이해하기에 필수코딩Coding/Rust❤️메모리Memory관리_기초상식 2021. 5. 8. 01:11728x90
스택에 푸시하기 (pushing on the stack)
스택을 팝하기 (popping off the stack)
힙 공간 할당하기(allocating on the heap)라고 부르고, 종종 그냥 "할당(allocating)"으로 줄여 부릅니다
자세한 내용은 밑에 링크 클릭!!
rinthel.github.io/rust-lang-book-ko/ch04-01-what-is-ownership.html
소유권이 뭔가요? - The Rust Programming Language
러스트의 핵심 기능은 바로 소유권입니다. 이 기능은 직관적으로 설명할 수 있지만, 언어의 나머지 부분에 깊은 영향을 끼칩니다. 모든 프로그램은 실행하는 동안 컴퓨터의 메모리를 사용하는
rinthel.github.io
stack과 heap을 이해하기 위해선 메모리 구조를 알아보자!
메모리 구조를 알아보자
프로그램이 운영체제로부터 할당받는 대표적인 메모리 공간(RAM)은 다음과 같다.
velog.io
반응형'코딩Coding > Rust❤️메모리Memory관리_기초상식' 카테고리의 다른 글
Rust]How to convert a String into a &'static str (0) 2022.04.18 Compile heaptrack_gui on macOS using homebrew (0) 2022.04.02 What and where are the stack and heap? (0) 2022.03.06 GopherConSg2019)Understanding Allocations: The Stack and the Heap (0) 2022.02.22 Stack overflow vs Heap overflow 개념 이해 (0) 2022.02.03 Stack vs Heap Memory in C++_The Cherno (0) 2021.12.05 Intro to Rustlang(Ownership and Borrowing)STACK과HEAP설명 (0) 2021.05.13 [컴퓨터 기초]메모리 구조(Memory Structure)_Data Structure(Code, Data, Stack, Heap) (0) 2020.09.24