A tool simulate the c memory management