Notes
This module contains two functions for measuring the high water mark of a stack, which can be used for optimizing the memory usage in an embedded system.
Include
stddef.h |
Functions
ao_stack_fill
void ao_stack_fill(void * beginning, size_t size);
Fills a stack with a pattern, which allows for measuring the high water mark of the stack, later on.
ao_stack_high_water_mark
size_t ao_stack_get_high_water_mark(void const * beginning, size_t size);
Measures the high water mark of a stack.