Re: [fpc-pascal] free pascal compiler on Linux Red Hat for target motorola 68k
LECUYER Philippe via fpc-pascal schrieb am Sa., 14. Okt. 2023, 15:16: > Hi, > > I search a free pascal cross compiler (for host Linux Red hat 7.x and > target Motorola 68k) > > I test the last 3.2.2 version but I doesn’t find the option for target > Motorola 68k (fpc –help) > > It’s run when I compile an example (in examples directory) and execute on > Linux RH 7.x but I want to produce the binary for 68k target. > > Thanks for helping me. > You need to build a suitable compiler. For this you download the source (either 3.2.2 or the development version 3.3.1) and do a make: make all CPU_TARGET=m68k OS_TARGET=linux BINUTILSPREFIX= FPMAKEOPT="-T " - j Where is the prefix of the binutils for 68k (as and ld, e.g. m68k-linux-gnu-) and is the number of CPU cores you have. After that you do a make install CPU_TARGET=m68k OS_TARGET=linux BINUTILSPREFIX= INSTALL_PREFIX=/path/to/the/destination Depending on the destination path you need to do that as root. There are further details, but I can't describe them right now, so don't hesitate to ask if you have issues. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] free pascal compiler on Linux Red Hat for target motorola 68k
Hi, I search a free pascal cross compiler (for host Linux Red hat 7.x and target Motorola 68k) I test the last 3.2.2 version but I doesn't find the option for target Motorola 68k (fpc -help) It's run when I compile an example (in examples directory) and execute on Linux RH 7.x but I want to produce the binary for 68k target. Thanks for helping me. Regards ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] All methods vitrual ?
Adriaan van Os via fpc-pascal schrieb am Fr., 13. Okt. 2023, 11:02: > Michael Van Canneyt via fpc-pascal wrote: > > > > > > On Wed, 11 Oct 2023, Adriaan van Os via fpc-pascal wrote: > > > >> Michael Van Canneyt via fpc-pascal wrote: > >> > >>> $M controls the inclusion of RTTI, i.e. it allows or disallows the > >>> use of the published section. > >>> No more, no less. > >> > >> I don't see any use in allowing or disallowing something. And with the > >> current design, it is, as I said, impossible, without macros, to > >> compile the same code with {$M+} and {$M-}. > > > > While I agree with your statement about allowing/disallowing use of > > 'published' based on a directive, we inherited this from Delphi and it > > is a very basic part of the language & RTL, so changing it is simply not > > an option. > > Well, as I said, adding a new visibility specifier, e.g. "visible", > meaning "public" in {$M-} state > and "published" in {$M=}", does in no way degrade compatibility with > Delphi code. One could reserve > the new visibility specifier for modes objfpc and macpas. > There will be no new visibility specifiers for something like this. And yes, it affects compatibility, as that means that code using that feature couldn't be compiled with Delphi and especially for library developers that might be an important point. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal