added include/memlayout.h