[fpc-devel] Questions regarding m68k-atari target

Karoly Balogh charlie at scenergy.dfmk.hu
Sat Jan 29 13:41:24 CET 2022


Hi,

On Sat, 29 Jan 2022, Karoly Balogh via fpc-devel wrote:

> > There are other parts that should be improved, and seem more important
> > to me (like ARGV support, completing the GEMDOS/BIOS/XBIOS interface
> > etc)
>
> Totally agree here.

Just one more note here, for the ARGV support, general env-var support and
fixing the tripple-enter problem, and similar issues, almost everything
you need is in rtl/atari already. The framework is there, just a bunch of
functions aren't implemented, or aren't implemented fully. I know the
rtl/inc (and rtl/objpas) looks huge and intimidating, but 99% of the
system specific stuff just falls through there, and eventually calls a
function in one of the rtl/atari/sys*.inc files, system.pp or sysutils.pp.
So that's where you probably want to look at.

Additionally, for extending the OS interfaces, you probably also want to
look into packages/tosunits. In fact you probably want to do that there,
because I wanted to keep the gemdos/xbios/etc includes in rtl/atari
minimal, and add just what's needed for the RTL itself. This way, those
includes kinda document what's _actually_ needed to run the core RTL. The
rest (advanced RTL parts, FCL, etc) can use tosunits from packages.

Sorry if this was trivial, but maybe it helps finding the way through the
maze that is the RTL code.

Cheers,
--
Charlie


More information about the fpc-devel mailing list