-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ft_malloc #2
Comments
to do next on ft_malloc branch:
|
lldb command to print memoryWATCH OUT: we are in little endian (bytes are organized from left to right)>lldb ./ft_malloc_exec >b main_test:19 => set a breakpoint at line 19 in main_test.c >r => run the program { breakpoint is reach } |
Main issue for the ft_malloc function which deals with the allocation of memory
Note: free is in another issue, please refer to #1
Tasks
specific documentation for implementation
analysis of malloc source code
https://code.woboq.org/userspace/glibc/malloc/malloc.c.html#malloc_chunk
making a global variable available in several
.c
files: https://stackoverflow.com/questions/1433204/how-do-i-use-extern-to-share-variables-between-source-fileshttps://stackoverflow.com/questions/1410563/what-is-the-difference-between-a-definition-and-a-declaration
https://www.tutorialspoint.com/extern-keyword-in-c
chunk headers:
https://reverseengineering.stackexchange.com/questions/19293/heap-chunk-structure-does-not-contain-previous-section-info
malloc minimum chunk size (from malloc source code):
Main decisions on implementation
The text was updated successfully, but these errors were encountered: