Il 28 febbraio 2021 alle 19:06 Bernd Paysan ha scritto: > 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: > > > > 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.
I did. Maybe this output can be helpful in diagnosing: f@extensa:~/spool/gforth-0.7.3_$ ls arch/ 386 6502 amd64 generic ia64 mips power sharc sparc 4stack alpha arm hppa m68k misc r8c shboom > > > 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 ;-). Thanks. I would like to port Forth to some hardware and wanted to know the fastest way to a working interpreter.