Simplify globalMem and funMem to memory
Manage compound instr memory