[fpc-devel] Questions about cross-compiling (z80)

BogDan bog_dan_ro at yahoo.com
Sat Feb 12 10:04:17 CET 2022


Wow, thanks a lot Pierre!
Now I can use fp ide to build stuff for zx spectrum.


On Saturday, February 12, 2022, 01:25:53 AM GMT+2, Pierre Muller via fpc-devel <fpc-devel at lists.freepascal.org> wrote: 

>> 2. Is it possible to add z80 cross compilation target to FP IDE? The FP IDe shows me a few targets, but z80 is not there.
> The text mode IDE can only ever compile for one CPU platform, so you need to build it for Z80. Though I don't know right now whether this is enabled.

  I just added basic support for a few more CPUs: riscv32, riscv64, wasm32, xtensa and z80.

  You can generate them in newest trunk by moving to packages/ide directory and issuing a:

make all_targets OPT="XXXX"
with XXXX being you usual OPT.

Or you can simply use:
make z80 OPT="XXXX"
followed by
make z80_install OPT="XXXX"

  This should add z80-fp executable in the same location as
your latest trunk compiler...

  Most CPUs do not have CPU specific options encoded inside
the IDE sources, thus you might need to add the options you
want to use to the
  Please report if you discover any problems.


More information about the fpc-devel mailing list