[fpc-devel] Questions regarding m68k-atari target

Thorsten Otto admin at tho-otto.de
Sat Feb 12 10:39:00 CET 2022

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 can
> supply those in the fpc.cfg and with $fpcsubarch you can get the name of
> the currently selected processor to use in a path name (the MS-DOS target
> makes use of this for example).

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. My config file has -
Tatari set, so the LINUX define is no issue. But if i invoke the compiler 
without excplicit -Cp<x>, it will generate code for 68000, but take the 
libraries from the 68020 directory. It works as intended if i explictly 
specify -Cp68000.

Why are those macros still defined?

I also noticed that the cross-compiler still tries to locate units in /usr/
That does not cause problems (because the directory does not exists), but 
doesn't look quite right.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220212/5224cce2/attachment-0001.htm>
-------------- next part --------------

# searchpath for tools

# Display Info, Warnings and Notes

More information about the fpc-devel mailing list