Question: How does the function 'malloc()' work and what memory does it use?

Answer: Malloc() uses a special section of memory called ' sysmem ' whose size is determined by the -heap directive in the linker (see the assembly language tools manual). malloc() itself is a function call, whose source code can be found in RTS.SRC. Use the archive utility to extract it.


Device: TMS320C3x
Category: TI Tools
Detail: Code Generation Tools
Detail2: Compiler
Title: How does the function 'malloc()' work
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0003314

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!