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" > 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* https://net2o.de/
signature.asc
Description: This is a digitally signed message part.