How are malloc and free implemented?

后端 未结 6 1022
心在旅途
心在旅途 2020-12-16 00:42

I want to implement my own dynamic memory management system in order to add new features that help to manage memory in C++.

I use Windows (XP) and Linux (Ubuntu). Wh

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 01:01

    Try http://www.dent.med.uni-muenchen.de/~wmglo/malloc-slides.html for pointers.

    This is a brief performance comparison, with pointers to eight different malloc/free implementations. A nice starting point, because a few good reference statistics will help you determine whether you've improved on the available implementations - or not.

提交回复
热议问题