S
S
Sergey2011-12-10 00:02:26
C++ / C#
Sergey, 2011-12-10 00:02:26

Memory manager for C++ project?

For self-learning purposes, I decided to write a simple memory manager for my projects (hypothetically). All the literature I found describes the process of writing it under Linux, but I'm interested in the Windows platform. (maybe I just searched badly, poke your nose, it will also be useful).
A rather banal question is also of interest - how to actually test this? Well, tobish, how to understand whether the same garbage collector is working correctly, or defragmentation (if it is needed) ...
Much appreciated.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Gribozavr, 2011-12-10
@gribozavr

First, decide whether you need a memory manager (alloc/free) or a garbage collector?
And secondly, regardless of the answer to the first question, where do you see the fundamental inapplicability of information about writing a memory manager or garbage collector for one OS to another OS? And in general, all the articles and books about garbage collectors that I read were written either in an OS-independent style, as a maximum, only a practical study of the characteristics was under one particular OS.

R
ruedj, 2011-12-10
@ruedj

Perhaps this post will help you - zamotivator.dreamwidth.org/497156.html. At one time, quite well-known programmers in Runet, people threw decent links on allocators and garbage collections there.

O
Oleg Solovyov, 2014-02-03
@vbloodv

Post death, now they use mostly smart pointers std:: shared_ptr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question