There does not seem to be automatic support for setting the stack correctly if the RAM area is somewhere in the middle of the memory map. For instance, the arcade game The FairyLand Story has RAM mapped from $C000 to $C800. There seems to be no way to indicate the size of this RAM for the Z80 port, so the stack pointer always starts at zero in the generated code, which would not work in the system.