发现做了这么多年的嵌入式开发,还有朋友搞不清楚stack & heap的区别,在阅读《Operating Systems_Three Easy Piece》时,里面的一段解释觉得非常好!C programs use the stack for local variables, function parameters, and return addresses; the OS allocates this memory and gives it to the process. The OS will ...【阅读全文】