[fpc-devel] Questions regarding m68k-atari target
Karoly Balogh
charlie at scenergy.dfmk.hu
Tue Feb 1 11:13:55 CET 2022
Hi,
On Tue, 1 Feb 2022, Thorsten Otto via fpc-devel wrote:
> On Dienstag, 1. Februar 2022 09:11:21 CET Pierre Muller via fpc-devel wrote:
>
> > thus you should use
> > -Aas-out
> > compiler option.
>
> Ah thx. Would make more sense to just use "as" like for other targets,
> but i see that this target is also used for amiga.
The distinction is made for a reason, namely to support GNU as both with
and without section smartlinking. If you want to work on "modern" GNU as
support, just add system_m68k_atari into ag68kgas.pas, line 363. Then both
-Aas-out and -Aas would work, the later producing assembler source with
many sections for section smartlinking.
Back then this wasn't a thing on Amiga, or Atari, therefore they haven't
been added to the assembler list that enables section smartlinking. Also
note there might be small things to tweak here-and-there in the writer to
make this work, but if you want to enable it as a developer, while keeping
the existing a.out support intact, this is the way.
Charlie
More information about the fpc-devel
mailing list