Jump to content
  • Advertisement
Sign in to follow this  
Hiyar

Memory Management (Book)

This topic is 3616 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Can anybody recommend a good book about memory management?(c++ and Windows) how to implement a replacement for the compiler heap code, and write own memory manager. Dealing with the problem of fragmentation, debugging etc. Thanks

Share this post


Link to post
Share on other sites
Advertisement
There's this one, though it doesn't cover anything Windows-related. You can read almost all of it here for free. Also make sure to read the reviews on Amazon. I haven't read it so I can't say if it's any good.

As for something Windows related, I would suggest looking at various books on Amazon and seeing what reviews they get. Also check if they are available for preview on Google Books.

Share this post


Link to post
Share on other sites
"Fundamental Algorithms: The Art of Computer Programming, volume 1" by Donald Knuth. See Chapter 2.

My favorite: "Data Structure Techniques" by Thomas A. Standish. Chapters 5 and 6 are most relevant. In fact, a lot of this book is motivated by memory management topics.

Although the books present the important ideas as if you were on a sequential machine, implementations need to be thread safe when in a multithreaded environment.

Share this post


Link to post
Share on other sites
It's a good idea to learn how memory management works. You can read alot about that but maybe you don't want to waste all your time on that. Go check the Doug Lea allocator and use it instead of trying to code a complex one: ftp://gee.cs.oswego.edu/pub/misc/. However, this is a fix heap allocator. Their is alot more like stack (or double stack) on heap, object pool, ... Maybe your program need a volatile memory allocator too if you load level, gameplay or something like that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!