Abstract. In this paper, we propose the dynamic memory manager and garbage collector for the embedded Java virtual machine. In order to facilitate to memory allocation and deallocation fast, the memory manager divides a heap into various sizes and thus manages it with the unit of block which is a set of identical cell. And we propose a new 4-color based Mark & Sweep garbage collector in order to support a multi-thread.