[fpc-devel] bug or feature - more

2022-02-12 Thread Martin Frb via fpc-devel
Should the below then work? (It currently does) Note, using "TBar = class end;" inside TFoo => does not work (expected). It creates a type TFoo.TBar. But the "type Abc = TBar"  >imports< the outer forward declaration. Btw, the compiler also does not care which of the 2 procedure declarations

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

2022-02-12 Thread Nikolay Nikolov via fpc-devel
On 2/11/22 19:14, Sven Barth via fpc-devel wrote: 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 for

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

2022-02-12 Thread BogDan via fpc-devel
Hi, On Saturday, February 12, 2022, 06:08:22 PM GMT+2, Sven Barth wrote: BogDan schrieb am Sa., 12. Feb. 2022, 13:23: > Hi, > > > On Saturday, February 12, 2022, 11:23:40 AM GMT+2, Sven Barth > wrote: > > > BogDan via fpc-devel schrieb am Sa., 12. > Feb. 2022, 10:18: >> Also, everyt

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

2022-02-12 Thread Sven Barth via fpc-devel
BogDan schrieb am Sa., 12. Feb. 2022, 13:23: > Hi, > > > On Saturday, February 12, 2022, 11:23:40 AM GMT+2, Sven Barth < > pascaldra...@googlemail.com> wrote: > > > BogDan via fpc-devel schrieb am Sa., 12. > Feb. 2022, 10:18: > > Also, everything that is not used by the application it should be

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

2022-02-12 Thread BogDan via fpc-devel
Hi, On Saturday, February 12, 2022, 11:23:40 AM GMT+2, Sven Barth wrote: BogDan via fpc-devel schrieb am Sa., 12. Feb. 2022, 10:18: > Also, everything that is not used by the application it should be stripped by > the linker (if it has one). Again I'd like to highlight that I'm new to fpc

Re: [fpc-devel] Questions regarding m68k-atari target

2022-02-12 Thread Florian Klämpfl via fpc-devel
> Am 12.02.2022 um 11:46 schrieb Karoly Balogh : > > Hi, > > On Sat, 12 Feb 2022, Florian Klämpfl via fpc-devel wrote: > My config file has -Tatari set, so the LINUX define is no issue. But if i invoke the compiler without excplicit -Cp, it will generate code for 68000, but take

Re: [fpc-devel] Questions regarding m68k-atari target

2022-02-12 Thread Karoly Balogh via fpc-devel
Hi, On Sat, 12 Feb 2022, Florian Klämpfl via fpc-devel wrote: > >> My config file has -Tatari set, so the LINUX define is no issue. But if > >> i invoke the compiler without excplicit -Cp, it will generate code > >> for 68000, but take the libraries from the 68020 directory. It works as > >> inte

Re: [fpc-devel] Questions regarding m68k-atari target

2022-02-12 Thread Florian Klämpfl via fpc-devel
Am 12.02.2022 um 10:54 schrieb Karoly Balogh via fpc-devel: Hi, On Sat, 12 Feb 2022, Thorsten Otto via fpc-devel wrote: I'm currently trying to set this up and have a problem with the cross-compiler. Although that was configured for atari and 68000, it still has LINUX and CPU68020 defined whil

Re: [fpc-devel] Questions regarding m68k-atari target

2022-02-12 Thread Karoly Balogh via fpc-devel
Hi, On Sat, 12 Feb 2022, Thorsten Otto via fpc-devel wrote: > I'm currently trying to set this up and have a problem with the > cross-compiler. Although that was configured for atari and 68000, it > still has LINUX and CPU68020 defined while processing the config file. That probably can't be hel

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

2022-02-12 Thread Florian Klämpfl via fpc-devel
Am 12.02.2022 um 10:18 schrieb BogDan: Hey, zx spectrum has ~41k or ram available for apps (it has 48k in total but ~7k are needed for screen). If RTL needs has over 32k it will not be too much left for the application itself. IMHO the z80 port RTL should have at least two implementations: - b

Re: [fpc-devel] Questions regarding m68k-atari target

2022-02-12 Thread Thorsten Otto via fpc-devel
On Montag, 7. Februar 2022 14:09:00 CET Sven Barth via fpc-devel wrote: > A FPC compiled for 68020 can generate 68000 code just fine and the other way > round (assuming of course that it was compiled without bugs ;) ). It's just > that you need to provide it with the correctly compiled units. You c

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

2022-02-12 Thread Sven Barth via fpc-devel
BogDan via fpc-devel schrieb am Sa., 12. Feb. 2022, 10:18: > Also, everything that is not used by the application it should be stripped > by the linker (if it has one). Again I'd like to highlight that I'm new to > fpc, last time I used pascal it was over 20 years ago :) . > The linker can only

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

2022-02-12 Thread BogDan via fpc-devel
Hey, zx spectrum has ~41k or ram available for apps (it has 48k in total but ~7k are needed for screen). If RTL needs has over 32k it will not be too much left for the application itself. IMHO the z80 port RTL should have at least two implementations: - bare-metal which implement all the needed

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

2022-02-12 Thread BogDan via fpc-devel
Hi, Wow, thanks a lot Pierre! Now I can use fp ide to build stuff for zx spectrum. Cheers, BogDan. On Saturday, February 12, 2022, 01:25:53 AM GMT+2, Pierre Muller via fpc-devel wrote: >> 2. Is it possible to add z80 cross compilation target to FP IDE? The FP IDe >> shows me a few targets,