Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Put the implementation in
heap.c and the declarations in heap.h. The test program that calls your functions is in main.c, and CMakeLists.txt configures the build.Check that
main.c includes heap.h and uses simple_malloc and simple_free. You can also add temporary logging or assertions in heap.c to verify the call flow during a test run.Verify the requested size and confirm your allocator is initialized before the first request. Ensure your implementation handles allocation failure paths correctly and that the test code checks for
NULL before using the returned pointer.No. You’ll use separate functions named
simple_malloc and simple_free and won’t replace the C library allocator.Run sequences that allocate, free, and then allocate again to see if subsequent requests succeed without errors. Add basic checks or prints in
main.c and heap.c to confirm that block metadata and returned pointers behave as expected.