Reworks memlayout (XCC)