Previous: C interface internals, Up: C Interface


5.26.8 Low-Level C Interface Words

open-lib       c-addr1 u1 – u2        gforth       “open-lib”

lib-sym       c-addr1 u1 u2 – u3        gforth       “lib-sym”

lib-error       – c-addr u        gforth       “lib-error”

Error message for last failed open-lib or lib-sym.

call-c       ... w – ...        gforth       “call-c”

Call the C function pointed to by w. The C function has to access the stack itself. The stack pointers are exported in the global variables gforth_SP and gforth_FP.