Add new wutmalloc library.

This overwrites malloc and redirects it to alloc from default heap.
Also sets __wut_heap_max_size to limit sbrk heap now that malloc no longer
uses it.
This commit is contained in:
James Benton
2018-06-14 09:33:16 +01:00
parent 98b6f6ec2f
commit d315b4bb34
5 changed files with 107 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ target_link_libraries(helloworld_cpp
sysapp
nn_ac)
wut_default_malloc(helloworld_cpp)
wut_enable_newlib(helloworld_cpp)
wut_enable_stdcpp(helloworld_cpp)