Re:Thinking Forth: A Language and Philosophy for Solving Pro...
by coldtea on Friday February 09, 2024 @03:08AM
(#39312579)
Yeah, it can, via it's favorite method for everything: adding params to the stack, and getting the return value there! Here's for GForth for example:
https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Cal...
There are even bindings to C/C++ GUI libraries and so on. Running at constrained systems is just a common deployment scenario, but nothing in Forth necessitates it. You can even run it under Windows.
I had no idea FORTH could invoke libraries from C. I got the impression it would be used on systems where space is at a premium precluding the installation of other higher-level languages.