gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross compiling


From: Bernd Paysan
Subject: Re: Cross compiling
Date: Sun, 28 Feb 2021 19:06:41 +0100

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/

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]