Page 1 of 1

an OS in forth?

Posted: Sun Jul 25, 2021 8:49 pm
by monarrk
Are there any compilers that can compile forth for bare metal? I know there are operating systems which are written in forth, but it looks like most of them roll their own forth interpreter to use as the system itself. Is there a standalone compiler which can create a kernel without having to recreate my own forth implementation?

Re: an OS in forth?

Posted: Wed Jul 28, 2021 2:46 pm
by segfaultdev
monarrk wrote:I know there are operating systems which are written in forth, but it looks like most of them roll their own forth interpreter to use as the system itself.
Hey, I have done that once! (: Although as you said, it was just a simple interpreted implementation...
monarrk wrote:Is there a standalone compiler which can create a kernel without having to recreate my own forth implementation?
Sadly though, as far as I know, from the very small amount of existing forth compilers, none is able to be easily used properly for osdev, so I would recommend just going with a simple forth compiler, as it shouldn't be that hard to do.