Re: Forth bootstrapping framework - Bootforth



"Nickolai Leschov" <nleschov@xxxxxxxxx> wrote in message
news:g6s397$kac$1@xxxxxxxxxxx
jpb wrote:
Do you think it's possible to make BootForth run on an embedded system
with 1.5K of RAM and 32K of ROM?
At the current moment, I don't think so. It depends on a couple of
standard C functions which need something like a library.
Embedded processors (microcontrollers) nowadays are normally programmed in
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 with
those limitations?
I think Forth could fit such systems. I would like to be able to use
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 small
Maybe 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's
not ROM-able.
I didn't get it. Could you please elaborate on this?

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



.



Relevant Pages

  • Re: Which edition of Server 2003 x64?
    ... 2003 Standard edition can not use more then 4GB RAM. ... Standard for installing and maintaining Enterprise edition. ... is what I think it is, especially in regards to the SMP capabilities. ...
    (microsoft.public.windows.server.general)
  • Re: Update - humor me...
    ... I have a standard windows box with a standard configuration. ... the time you guys were saying it was my fault, ... So I purchased more ram, ...
    (rec.games.chess.computer)
  • Re: TS newbie OS question
    ... Standard or Enterprise. ... Standard 32-bit is limited to 4GB ... RAM. ... For new servers I recommend running 64-bit, ...
    (microsoft.public.windows.terminal_services)
  • Which edition of Server 2003 x64?
    ... Our provider charges us roughly 3-4 times the price of Standard for ... The machines have at least 8GB of RAM and 8 ... cores. ...
    (microsoft.public.windows.server.general)
  • Re: Virtual TS on this SBS Box
    ... My experience has been much different, typical users are running MS Office 2003, Adobe Acrobat Standard, and some type of CRM ... My clients primarily run Office and Outlook and an Access Database from the server. ... Did you limit the RAM usage of the MSDE databases? ...
    (microsoft.public.windows.server.sbs)

Loading