an OS in forth?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
monarrk
Posts: 20
Joined: Mon Nov 02, 2020 4:53 pm
Freenode IRC: monarrk

an OS in forth?

Post 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?
segfaultdev
Posts: 14
Joined: Mon Oct 19, 2020 10:32 am
Freenode IRC: segfaultdev

Re: an OS in forth?

Post 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.
Post Reply