Re: Cross compiling

Bernd Paysan <[email protected]> Sun, 28 Feb 2021 19:06:41 +0100
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <12423663.JnyDDorlae@liubei>
Am Sonntag, 28. Februar 2021, 19:02:17 CET schrieb Francesco Ariis:
> 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

Did you build the hosting Forth?  You need to run

./configure; make

first.

> > 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?

You don't have to write one, because for Z80, there already are existing Forth 
assemblers out there.  The problem nowadays is more to find this old code ;-).

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmA727EACgkQ9y2Uk5Mt
oGdl0Q//dbXTNMzeQYki2AhbXIUvBWr3O2bepy5QsDQ4czrt6751zhRK/YGlx0iC
N1OxRmQsHSYiXsN0HMPbSK0tqPcszwCBAXM6WdA5bdOHkbWBsKZWSSBqwGzjrN3L
b6KEGpSE48Sc2muNMXiVR2TaomUtHISFB+cCH69icjoHAoBueCag0a7EE7203i29
+zQL0f4jcIPI8ceDjG6L2/9Ym5e9i7bRebMYvFRZjMPHTZU4yo6G7IadQXE0yZ+l
qVVLsAN8YGXAlb2+DOA9vPVV7APU1Wo1DB3hsiHmwO9kr678RZbj9xGCcxq+1dJA
tWp6VmzV7IM5Aqo4qWwUMD0YfGaGM1E76Zfnq4segiALRYsuH0tyVDVQpZNgjtY8
noRiCqwNWAitEYoxBYNj2e/NapS3h1NLzV1mP3yQcFP2wIQpHTkoeZtsliuWtypo
/UoqwY7/0mGpkpQAsfbWuHJ/m8LmCf0PTUxlucWDJnu5GyBqXxLRTmboI1HrRdSI
zS7m8Wm4+0ZInhRZDhNILkSPOJNjOwnlLfTUsF4eJwO4bKf83SykgpFb3SuqKBjG
AxwcfspZ9zHJETfKLaxxPfGwqS4x8JJlPPJLE8jJodWoUE3w+74YHeaZzEYtBreY
pX3jX6F1edl5+LOybYx0AZQ05qE+B3twsyLFZYI5dBGGBqTg1tk=
=yYnL
-----END PGP SIGNATURE-----