I am experimenting with the most suitable way for deploying my Prolog tool. So far, I want to host it somewhere in the cloud as a standalone executable with obfuscated code.
From the documentation (Creating executables on Unix/Linux), I used the following to create the executable.
$ swipl --stand_alone=true -o my_tool -g main -c my_tool.pl
My understanding is that the knowledge base contained in
my_tool.pl is attached to the
swipl binary as some sort of saved state.
But I still do not know how to obfuscate the code prior to that.
My question is: how do I create a saved stated for the program? Where do I set the obfuscation flag? and how do I instruct the binary-creation process to use a specific saved state (one with the code obfuscated)?