Memory Management (Book)
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
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.
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.
"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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement