A Wear Leveling Aware Memory Allocator for Both Stack and Heap Management in PCM-based Main Memory Systems | IEEE Conference Publication | IEEE Xplore