This step went easier than expected, the entire AmForth riscv was
abstracted to 40 C compatible assembler instructions (in a file
riscv_pal.h) for easier porting to other platforms, not only CH32 but also
ESP32 (or other) series of riscv processors. This can easily be adapted to
other processors like 32 bit ARM and Xtensa or even i386 (...). The actual
generated assembly code remains the same and is already running on
CH32X033. This should also address the random alignment problem that I have
been seeing,  in the CH32X033 build and keeping the dictionary more compact.

Next step is a cleaner CH32X033 build and a ESP32-C6 build.
Regards,
John S

On Fri, Jan 23, 2026 at 1:40 PM John Sarabacha <[email protected]> wrote:

> Hi Everyone,
> For using ITC and DTC based forth code the next step is making AmForth
> more portable.
> Any platform that supports C will be able to use amForth (as a subsystem).
> The terminology that I am using is that  AmForth is the full independent
> system and amForth is a subsystem based on AmForth.
> The 1st step is moving the primary words to a form which is more portable
> across
> platforms using asm(...) calls with a C infrastructure. Then using this as
> a foundation for all the words.
>
> Regards,
> John S
>

_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to