I just have a question which I can't find a accurate answer online ..
Using swipl-ld
can help to combine Prolog and C code together, and eventually generating one signal
executable binary.
But there is one thing I am confused with...
In the generated binary, does the Prolog Interpreter
(Virtual Machine or others) still exist?
If so, then probably the original Prolog
code is stored as string
in the .rodata
section of ELF binary, but after a searching inside this section, I didn't find the code.. But perhaps the original code has been transformed into bytecode
, and that's why I just can't find it at all..
If not, then how can Prolog code directly translate into semantic equivalent asm code based on SWI-Prolog? I have read some materials about the implementation of GNU-Prolog, based on WAM virtual machine, however, I haven't found any materials about the implementation of SWI-Prolog...
Could anyone give me some help?