Re: Cross compiling

Francesco Ariis <[email protected]> Sun, 28 Feb 2021 19:02:17 +0100
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <20210228180217.GA6447@extensa>
Il 28 febbraio 2021 alle 18:51 Bernd Paysan ha scritto:
> Am Sonntag, 28. Februar 2021, 17:04:16 CET schrieb Francesco Ariis:
> > Hello forthers,
> > 
> >     I was reading the manual section on cross-compiling [1], but the
> > documentation seems a bit outdated (e.g. `kernl-8086.fi` target is not
> > present in my `gforth-0.7.3`).
> 
> Yes, it is. It's a kernl-%.fi: target. It will expand to
> 
> ./preforth -p ".:~+:." -e 's" arch/8086/mach.fs"' ./kernel/main.fs -e "save-
> cross kernl-8086.fi- /usr/local/bin/gforth-0.7.3 bye"

    f@extensa:~/spool/gforth-0.7.3_$ make kernl-8086.fi
    make: *** No rule to make target 'kernl-8086.fi'.  Stop.

Gforth 0.7.3 downloaded from https://gforth.org/ , running on Debian
Buster

> For such older hardware, you need to port an assembler and the primitives
> (which is exactly what Klaus Kohl-Schöpe did for the 8086).

Pardon the naïvete, but what does «port an assembler» mean? Write (on
my host machine) an assembler that works on the target machine?