Emit memory references.