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

2022-02-11 Thread Pierre Muller via fpc-devel
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 ba

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

2022-02-11 Thread Sven Barth via fpc-devel
BogDan schrieb am Fr., 11. Feb. 2022, 22:20: > Hi, > > > Thanks a lot for your quick reply. > > Adding ihxutil to path fixed the problem. > But the size problem is stil there, a simple 2 lines of code "begin; > end." generates over 32k of code. That code should not generate more than > 8 bytes o

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

2022-02-11 Thread Florian Klämpfl via fpc-devel
Am 11.02.2022 um 22:20 schrieb BogDan via fpc-devel: Hi, Thanks a lot for your quick reply. Adding ihxutil to path fixed the problem. But the size problem is stil there, a simple 2 lines of code "begin; end."  generates over 32k of code. That code should not generate more than 8 bytes of code

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

2022-02-11 Thread BogDan via fpc-devel
Hi, Thanks a lot for your quick reply. Adding ihxutil to path fixed the problem. But the size problem is stil there, a simple 2 lines of code "begin; end."  generates over 32k of code. That code should not generate more than 8 bytes of code. Are there any flags that I need to use to make the c

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

2022-02-11 Thread Sven Barth via fpc-devel
Tomas Hajny via fpc-devel schrieb am Fr., 11. Feb. 2022, 17:24: > On 2022-02-11 14:14, Sven Barth via fpc-devel wrote: > > BogDan via fpc-devel schrieb am Fr., > > 11. Feb. 2022, 11:09: > > . > . > >> It seems is an IHX format not tzx > >> Also the result for a simple hello world is way too

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

2022-02-11 Thread Tomas Hajny via fpc-devel
On 2022-02-11 14:14, Sven Barth via fpc-devel wrote: BogDan via fpc-devel schrieb am Fr., 11. Feb. 2022, 11:09: . . It seems is an IHX format not tzx Also the result for a simple hello world is way too big (over 20k) ! I assume that I'm passing wrong params to ppcrossz80. What params should

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

2022-02-11 Thread Sven Barth via fpc-devel
BogDan via fpc-devel schrieb am Fr., 11. Feb. 2022, 11:09: > Hello, > > According to https://wiki.freepascal.org/Z80 fpc is able to compile > pascal code for z80. > Sadly I'm a newbie on fpc, therefore I have a few questions: > > 1. I changed a bit the build script from > https://wiki.freepascal.

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

2022-02-11 Thread BogDan via fpc-devel
Hello, According to https://wiki.freepascal.org/Z80 fpc is able to compile pascal code for z80. Sadly I'm a newbie on fpc, therefore I have a few questions: 1. I changed a bit the build script from  https://wiki.freepascal.org/Z80#Building and I managed to build fpc, and when I built a simple h