memory - cccbook/sp GitHub Wiki
่จๆถ้ซ้ ็ฝฎ
C ็ๅท่ก็ฐๅข
Code
Data
Stack
Heap
Stack ่ Heap
ๅฝๆธๅผๅซ : ๅๆธใ่ฟๅ้ปใๅๅ่ฎๆธ
้่ฟด Recursive ็้ไฝๅ็
malloc ็้ไฝๅ็
- LinkedList -- https://github.com/pseudomuto/c-data-structures/blob/master/src/implementation/list.c
- https://www.gribblelab.org/CBootCamp/7_Memory_Stack_vs_Heap.html (่ฎ!)
- https://www.geeksforgeeks.org/memory-layout-of-c-program/ (่ฎ!)
- https://en.wikipedia.org/wiki/C_dynamic_memory_allocation
- https://en.cppreference.com/w/c/memory/malloc
- https://www.tutorialspoint.com/operating_system/os_memory_management.htm
ๆฏ่ผ C ่ๅ ถไป่ช่จ
malloc vs. Garbage Collection
- ่ช่ก้ๆพ: malloc + free
- C/C++
- ๅๅพๆถ้: Garbage Collection
- C#, Java, JavaScript,