[Top][All Lists]

[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 18:51:04 +0100

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. `` target is not
> present in my `gforth-0.7.3`).

Yes, it is. It's a target. It will expand to

./preforth -p ".:~+:." -e 's" arch/8086/mach.fs"' ./kernel/main.fs -e "save-
cross /usr/local/bin/gforth-0.7.3 bye"

> I tried:
>     s" ../mach16l.fs"  ok
>     include main.fs
>     in file included from main.fs:43
>     ../cross.fs:1160: No such file or directory
>     U<<<@
>     Backtrace:
>     $7F984F9A4A08 throw
> Generally speaking, how difficult is it to cross compile the interpreter
> for another architecture?
> Can I do that even for older hardware as the Z80 or the Sharp LH79520?
> Or would I be better off bootstrapping forth myself in assembly?

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).

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*

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

reply via email to

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