From dc0857bfd8c91a57372d971ff0f5cd166d90d360 Mon Sep 17 00:00:00 2001
From: Dale Weiler Compiler Documentation
Defaults Flag
@@ -495,7 +496,100 @@ $ cd gmqcc
that need not be set), as well as missing tags, and error accordingly
which will result in that task failing.
+ Included with GMQCC is a minimal implementation of the QCVM used in many game + engines. It's primarly used for the testsuite, but you may also use it as a + standalone runtime, or even embed it with existing appliciations. +
++ To run the standalone application you need to have a compiled progs.dat, with an + entry function named main The main function can have any amount of arguments + as the standalone executor allows main to be invoked with your choice of arguments. + An example of invoking the VM: +
$ ./qcvm progs.dat -float 200 #execute passing in 200 as a float to main+ If main doesn't require arguments: +
$ ./qcvm progs.dat #call main with no arguments+ + The standalone executor supports the following arguments for passing arguments to main  + +
Argument | +What it does | +
-string | +Passes in a string to main | +
-float | +Passes in a float to main | +
-vector | +Passes in a vector to main | +
void main(float a, vector b)+ + Then to pass the arguments you'd use the same order: +
$ ./qcvm -float 200 -vector '1 2 3'+ +
Argument | +What it does | +
-trace | +Trace the execution call hierarchy. | +
-profile | +Profile the bytecode to find hotspots. | +
-info | +Get info of the running bytecode. | +
-disasm | +Dissasemble the bytecode into assembly. | +
-printdefs | +Prints all definitions for the bytecode running. | +
-printfields | +Prints all fields for the bytecode running. | +
Builtin | +Number | +
1 | |
ftos | 2 |
spawn | 3 |
kill | 4 |
vtos | 5 |
error | 6 |
vlen | 7 |
etos | 8 |
Having trouble with GMQCC? Join our IRC channel at #kf-engine on irc.freenode.net or contact Us diff --git a/index.html b/index.html index 4115be0..62882af 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
An Improved Quake C Compiler
+An Improved Quake C Compiler and tools