Tool/software: TI C/C++ Compiler
I'm trying to reduce some memory usage on a project using the MSP430fr5989. The project is currently a mix of c and c++. Looking at the .map file shows a number of functions used from the rts430x_lc_ld_eabi_se.lib library's memory.c file. A few caught my eye and I cannot figure out why they are included at all (see below). Particularly, malloc is included which brings in aligned_alloc. alligned_alloc is one of the largest functions in my .text section. I'd love to be able to get rid of it as I am not intentionally doing any dynamic memory allocation.
Can someone help me figure out how to remove some of these functions or at least figure out why is calling them?
.text 0 00004400 000056d6
...
00005030 00000198 rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:aligned_alloc)
...
000054a2 0000013c rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:free)
...
00006516 000000ba rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:split)
000065d0 000000b8 : fs_mpy.asm.obj (.text)
...
00008182 00000046 rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:free_list_insert)
000081c8 00000046 : fs_tou.asm.obj (.text)
...
00008d30 0000002a rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:free_list_remove)
...
00009922 0000000c rts430x_lc_ld_eabi_se.lib : memory.c.obj (.text:malloc)