17.05.2015 Views

TMS34010 C Compiler - Al Kossow's Bitsavers

TMS34010 C Compiler - Al Kossow's Bitsavers

TMS34010 C Compiler - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Reset Dynamic Memory Pool<br />

minit<br />

Syntax #include <br />

Defined in<br />

Description<br />

void minit()<br />

memory. c in rts. src<br />

The minit function resets all the space that was previously allocated by calls<br />

to themalloc.calloc. or realloc functions.<br />

Note:<br />

Calling the minig function makes all the memory space in the heap<br />

available again. Any objects that you allocated previously will<br />

be lost; don't try to access them.<br />

The memory that minit uses is in a special memory pool or heap. A C module<br />

called memory. c reserves memory for the heap in the .bss section. The<br />

constant MEMORY-SIZE defines the size of the heap as 1000 bytes. If necessary,<br />

you can change the size of the heap by change the value of<br />

MEMORY_SIZE and reassembling memory. c. For more information, see<br />

Section 5.1.3, Dynamic Memory <strong>Al</strong>location, on page 5-4.<br />

6-55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!