Sign in to follow this  
Hiyar

Memory Management (Book)

Recommended Posts

Hiyar    130
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
Gage64    1235
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
Dave Eberly    1173
"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
Ben204    118
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this