Prepare separate code and data spaces