Embedding Factor into C applications (original) (raw)

Embedding Factor into C applications
Factor handbook » C library interface

Prev: DLL handles

The Factor Makefile builds the Factor VM both as an executable and a library. The library can be used by other applications. File names for the library on various operating systems:

OS Library name Shared?
Windows XP/Vista factor.dll Yes
macOS libfactor.dylib Yes
Other Unix libfactor.a No

An image file must be supplied; a minimal image can be built, however the compiler must be included for the embedding API to work (see Command line switches for bootstrap).
Factor embedding API
What embedding looks like from Factor
Embedding API restrictions