EM_GC Function (ROM Call 0x160)

flash.h

short EM_GC (short allowDialog);

Performs garbage collection in the archive memory.

EM_GC performs garbage collection, i.e. rearranges blocks in the archive memory on such way that all used blocks become contiguous, without free blocks between them. If allowDialog is TRUE, a confirmation dialog will be displayed, and if it is FALSE, the garbage collection will be performed without asking user for the confirmation. EM_GC returns TRUE if garbage collection occured, otherwise it returns FALSE.


Used by: OSLinkCmd, EM_moveSymToExtMem