Skip to content

agavrel/42-ft_malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Design patterns have already made an important contribution to the development of object technology, and as new ones continue to be published they will help developers to benefit from the experience of their elders and peers. How can the general idea contribute to reuse? Design patterns should not encourage a throwback to the “all that counts is design reuse” attitude mentioned earlier. A pattern that is only a book pattern, however elegant and general, is a pedagogical tool, not a reuse tool; after all, computing science students have for three decades been learning from their textbooks about relational query optimization, Gouraud shading, AVL trees, Hoare’s Quicksort and Dijkstra’s shortest path algorithm without anyone claiming that these techniques were breakthroughs in reusability. In a sense, the patterns developed in the past few years are only incremental additions to the software professional’s bag of standard tricks. In this view the new contribution is the patterns themselves, not the idea of pattern." Approaches to Reusability in Object Oriented Software Construction by Meyer

"This opened my mind, I started to grasp what it means to use the tool known as algebra. I’ll be damned if anyone had ever told me before: over and again Mr. Dupuy [the mathematics teacher] was making pompous sentences on the subject, but not once would he say this simple word: it is a division of labor, which like any division of labor produces miracles, and allows the mind to concentrate all of its forces on just one side of objects, on just one of their qualities. What a difference it would have made for us if Mr. Dupuy had told us: This cheese is soft or it is hard; it is white, it is blue; it is old, it is young; it is yours, it is mine, it is light or it is heavy. Of so many qualities let us consider only the weight. Whatever that weight may be, let us call it A. Now, without thinking of the weight any more, let us apply to A everything that we know of quantities. Such a simple thing; yet no one was saying it to us in that faraway province…" Stendhal, The Life of Henry Brulard, 1836.

ft_malloc

Libc malloc

Subject: https://cdn.intra.42.fr/pdf/pdf/1078/ft_malloc.en.pdf
libc man : https://linux.die.net/man/3/malloc
http://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html
test.c credits : https://www.youtube.com/watch?v=F3z-SIxu1Tw
https://stackoverflow.com/questions/9519648/what-is-the-difference-between-map-shared-and-map-private-in-the-mmap-function replace O_RDWR by O_RDONLY and then MAP_SHARED by MAP_PRIVATE in test.c
tutorial : http://www.inf.udec.cl/~leo/Malloc_tutorial.pdf
Difference between mmap and brk : https://cboard.cprogramming.com/linux-programming/101090-what-differences-between-brk-mmap.html

About

own implementation of malloc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages