简体   繁体   English

C语言中的内存管理

[英]Memory Management in C

I've just started learning C and haven't been doing any memory management up to now. 我刚刚开始学习C,到目前为止还没有进行任何内存管理。 Can anyone recommend a good guide/tutorial for memory management in C? 谁能为C语言中的内存管理推荐一个好的指南/教程?

I think the biggest thing to wrap your head around is storage and lifetime of variables in memory (stack vs heap). 我认为最大的困扰是内存中变量的存储和生存期(堆栈与堆)。 You can check out WikiBook 's treatment of this topic. 您可以查看WikiBook对这个主题的处理。 I find it to be a gentler introduction to a lot of topics. 我发现它是对许多主题的较温和的介绍。

Helps if you are more specific. 如果您更具体,则有帮助。 Perhaps, this maybe of some help http://graphics.stanford.edu/~seander/bithacks.html 也许,这对您有所帮助http://graphics.stanford.edu/~seander/bithacks.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM