need to fix memaddrs in compiler.