-
Notifications
You must be signed in to change notification settings - Fork 107
memory
陳鍾誠 edited this page May 9, 2019
·
9 revisions
Code
Data
Stack
Heap
函數呼叫 : 參數、返回點、區域變數
遞迴 Recursive 的運作原理
- 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
malloc vs. Garbage Collection
- 自行釋放: malloc + free
- C/C++
- 垃圾收集: Garbage Collection
- C#, Java, JavaScript,