C++: Difference between revisions

Jump to navigation Jump to search
20 bytes removed ,  10 years ago
Fixed link to liballoc
[unchecked revision][unchecked revision]
(Add note that the global constructors section needs more work)
(Fixed link to liballoc)
Line 446:
You could also let '''new''' use '''calloc''' (allocate and zero). This way, newly allocated memory will always be zeroed (thus, not contain garbage). The standard '''new''' implementations do however not clear the returned memory.
 
An easy malloc implementation you can port to your OS is [httphttps://wwwgithub.smksoftware.co.za/categorycom/progressblanham/liballoc/ liballoc]. It only requires basic [[Paging]] (that is, store a list of used and free pages, and have a function to find the next free page) to work.
 
=== Placement New ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu