You can use the external language interface with C or Java in order to make your program standalone. You can also make your program standalone without using the interface. You only need to redefine the main/0 predicate, which is the first predicate that is executed by the B-Prolog interpreter. See Section 19.1 for the details.
Neng-Fa Zhou
2013-01-25