Reduce allocations overhead
commitcdc16d428f32294aa06b293fb81123f418e38b82
authorVlad Vissoultchev <wqweto@gmail.com>
Sun, 17 Apr 2016 13:22:50 +0000 (17 16:22 +0300)
committerVlad Vissoultchev <wqweto@gmail.com>
Sun, 17 Apr 2016 14:26:10 +0000 (17 17:26 +0300)
tree749ce0719e089727e9a9f9f1c9c27fc0e964d117
parent224236f57c7d645c9b23d717de354df5d12b98b6
Reduce allocations overhead

- uses new `TinyAlloc`-ators for small `TokenSym`, `CString` and
  `TokenString` instances
- conditional `TAL_DEBUG` for mem leaks and double frees detection
- on `TAL_DEBUG` collects allocation origin (file + line)
- conditional `TAL_INFO` for allocators stats (in release mode too)
- chain a new allocator twice current capacity on buffer exhaustion
tcc.h
tccpp.c