I happened to be reading an interview of Tom Zimmer https://jimlawless.net/blog/posts/zimmer/ in which he states:
"When I work with other C programmers on large projects, I always
build in a Forth interpreter into the application, for debugging
purposes....
Would anyone have a "Hello, World!" type example of this technique?
I do see https://gforth.org/manual/Integrating-Gforth.html which ends
with an ominous "More documentation needs to be put here." :-)
... Is the
idea to stop the application while poking around with Forth, or would
Forth be a task under an RTOS, or what?
Your second idea is along the lines of the Gforth/ATLAST concept whereThat was the original idea of 4tH - a scripting language for a C
Forth is a scripting language for a C/C++ application. I have another
Linux based embedded system that has some pieces that are always
changing. Maybe a Forth task inside a C/C++ program that would pick up changeable scripts from the SD Card would be better than constantly recompiling my C/C++ application and re-flashing main memory.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,030 |
Nodes: | 10 (1 / 9) |
Uptime: | 16:16:30 |
Calls: | 13,345 |
Calls today: | 2 |
Files: | 186,574 |
D/L today: |
1,281 files (330M bytes) |
Messages: | 3,357,545 |