Re: TMS linker quetion
Hello mhamed
Heap is the arrea of the memory reserved for dynamic memory allocation.
It means that run-time you may decide to allocate 10 bytes of ram so you
have something like
int *PointerToDynnamicMemory, bytes;
bytes=10;
PointerToDynnamicMemory=malloc(bytes);
....
free(PointerToDynnamicMemory)
Function malloc search for the RAM block in the previously reserved arrea (called HEAP) create small header at the begining of each allocated memory block(with size of the block and the next block, mark free/allocated). Using this headers malloc can search the heap for the free block with size bigger than the user requests and to separete this block into allocated and free part ... You can check the code of the malloc for details (the c cource is included for the rts55.lib as rts55.src or something ....)
Note that the HEAP shoulc not cross the page boundary ... otherwise you will have problems!
Best regards
dora