Re: Forth bootstrapping framework - Bootforth
- From: "Maki" <veselic123@xxxxxxxx>
- Date: Thu, 31 Jul 2008 12:38:33 +0200
"Nickolai Leschov" <nleschov@xxxxxxxxx> wrote in message
news:g6s397$kac$1@xxxxxxxxxxx
jpb wrote:
Embedded processors (microcontrollers) nowadays are normally programmed inDo you think it's possible to make BootForth run on an embedded systemAt the current moment, I don't think so. It depends on a couple of
with 1.5K of RAM and 32K of ROM?
standard C functions which need something like a library.
C. (sometimes, C++ even) Therefore, there is standard library. I hope that
there would be just a few things to consider to be able to run Forth on a
microcontroller; here's the ones that come to mind:
1. Using malloc/free is impractical, even though it may be implemented in
standard library.
2. IO device is a serial line, which may be used by the application as
well. Again, this may or may not be accounted for in the implementation of
the standard library.
But why, should you want to run BootForth on an embedded system withI think Forth could fit such systems. I would like to be able to use
those limitations?
umbilical Forth on such system. Currently I'm stuck with C's
edit/compile/test cycle. In-curcuit debugging is not available and
programming (writing binary code) is not instantaneous and is apart from
running. I used to use Forth in the past and I'd like to use Forth's
interactivity in my embedded project.
probably it would fit into the ROM, but the RAM is too smallMaybe I should do some tweaks. I don't yet have the whole picture of how
BootForth could be used in such environment but I think that umbilical
Forth will be very useful for embedded environment if done right.
and it assumes the whole memory space for it's own, which means that it'sI didn't get it. Could you please elaborate on this?
not ROM-able.
I like your approach that Forth is made for tweaking and extending it. I
liked to use Forth, and thought about rolling my own, but never got to the
point where I can do it myself. Now I don't have to!
Best regards,
Nickolai Leschov
I didn't look at BootForth's code but I think that this system can't work on
micros with Harvard architecture. These microcontrollers usually have lots
of flash memory and little RAM (as described). So You need Forth with
modifications according to which memory your code is addressing.
Look at FlashForth, amForth...
Best regards,
Maki
.
- References:
- Forth bootstrapping framework - Bootforth
- From: jpb
- Re: Forth bootstrapping framework - Bootforth
- From: Nickolai Leschov
- Re: Forth bootstrapping framework - Bootforth
- From: jpb
- Re: Forth bootstrapping framework - Bootforth
- From: Nickolai Leschov
- Forth bootstrapping framework - Bootforth
- Prev by Date: Re: Forth for PIC18
- Next by Date: Re: Gforth snapshot 0.6.9-20080716
- Previous by thread: Re: Forth bootstrapping framework - Bootforth
- Next by thread: Re: Forth bootstrapping framework - Bootforth
- Index(es):
Relevant Pages
|
Loading