Shifted to a C-library based memory system instead of using _MEM