GNU m4 is required to generate the VM console script. A makefile is also included that provides the recipe to compile the VM script.
See stackvm-xonotic/examples, for example programs. To test the program included in the example folder, do the following:
- Make sure the xSVM program is loaded, do this by executing stackvm.cfg.
- Execute the program to run, in this example do "exec stackvm-xonotic/examples/main.cfg" to load main.cfg
- Use the "vm.run" alias to initiate program execution.
- mainloader.cfg: Sits at the top of the program, loads the main function.
- math.cfg: Primitive math library containing basic functions.
- main.cfg: Example program that tests math.cfg functionality.