How is the memory layout of a C/C++ program?

后端 未结 6 2100
感动是毒
感动是毒 2021-01-31 22:00

I know that there are sections like Stack, Heap, Code and Data. Stack/Heap do they use the same section of memory as they can grow independently? What is this code section? When

6条回答
  •  情深已故
    2021-01-31 22:22

    It's mostly OS dependant.

    For windows take a look at Petzold or Richter's books. For Linux you can read the source !

提交回复
热议问题