from mem_sys import * M=memory_alloc(1024) print M b1=M.allocate(5,'1') print M b2=M.allocate(3,'2') print M b3=M.allocate(6,'3') print M M.free(b2,3) print M b5=M.allocate(12,'5') print M b4=M.allocate(6,'4') print M M.free(b1,5) print M b6=M.allocate(8,'6') print M