tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Scripting DDB in Forth?
On Mon, May 02, 2016 at 00:59:06 -0400, Michael wrote:
> On Mon, 2 May 2016 04:59:32 +0300
> Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
>
> > I've accidentally wrote a Forth for sh3 (long story).
>
> What kind of accident makes you write something relatively non-trivial
> without meaning to?
I guess the perceived "otherness" of Forth prevents people realizing
how straightforward, if not trivial, a naive Forth really is (I'm not
talking about smart inlining compilers and the like here).
> > I thought it might be interesting to put it into the kernel so that
> > it can be hooked into DDB.
>
> I'm afraid my first thought was OF_interpret() on machines that have
> OF-like device trees but no OF.
I'm not sure I understand. OF_interpret() by itself is not that
useful unless you have the real OF device tree you can talk to. But
if you don't care about the abstraction / OOP layer of OF and just
need ability to execute some code dynamically, then I don't see why
not.
Or we can port real OF perhaps? OpenBIOS is GPLv2, but since it will
not be part of the kernel, that's not an issue. Also, Sun did release
OpenBOOT under BSD'ish license, if you want to be a purist about the
licensing and don't mind doing extra work.
-uwe
Home |
Main Index |
Thread Index |
Old Index