Simple Allocator ---------------- Memory management in BL programs is handled by alocator function set in global context. Every allocation and free via alloc or free function call ends up in default or custom allocator provided by context, so we can change the way memory allocates for whole program even for standart API function. This can be helpful during development when we want to track down all allocations or basically when we want to optimize memory usage of program. Following example shows simple allocator using static buffer. .. literalinclude:: 101_simple_allocator.bl :language: bl .. raw:: html :file: disqus.html