Scroll to navigation

QCVM(1) General Commands Manual (prm) QCVM(1)

NAME

qcvmA standalone QuakeC VM binary executor

SYNOPSIS

qcvm [options] [parameters] program-file

DESCRIPTION

qcvm is an executor for QuakeC VM binary files created using a QC compiler such as gmqcc(1) or fteqcc. It provides a small set of builtin functions, and by default executes the () function if there is one. Some options useful for debugging are available as well.

OPTIONS

There are 2 types of options. Options for the executor, and parameter options used to add parameters which are passed to the main function on execution.

, --help
Show a usage message and exit.
Trace the execution. Each instruction will be printed to stdout before executing it.
Perform some profiling. This is currently not really implemented, the option is available nonetheless.
Print information from the program's header instead of executing.
Disassemble the program by function instead of executing.
function
Search for and disassemble the given function.
List all entries from the program's defs-section. Effectively listing all the global variables of the program. This option disables execution.
List all entries from the program's fields-section. Listing all entity-fields declared in the program. This option disables execution.
List functions and some information about their parameters. This option disables execution. With a verbosity level of 1, builtin numbers are printed. With a verbosity of 2, the function's sizes are printed as well. This takes a little longer since the size is found by searching for a ‘DONE’ instruction in the code.
Increase verbosity level, can be used multiple times.
'x y z'
Append a vector parameter to be passed to main().
number
Append a float parameter to be passed to main().
'text'
Append a string parameter to be passed to main().

BUILTINS

The following builtin functions are available:

Print the passed strings to stdout. At most 8 strings are allowed.
Convert a float to a string.
Spawn an entity.
Remove an entity.
Convert a vector to a string.
Print strings to stdout and then exit with an error (limited to 8 arguments)
Get the length of a vector.
Get the entity ID as string.
Convert a string to a float.
Concatenate two strings, returning a tempstring.
Compare two strings. Returns the same as the corresponding C functions.
Normalize a vector so its length is 1.
Get a value's square root.

SEE ALSO

gmqcc(1)

AUTHOR

See <http://graphitemaster.github.com/gmqcc>.

BUGS

Please report bugs on <http://github.com/graphitemaster/gmqcc/issues>, or see <http://graphitemaster.github.com/gmqcc> on how to contact us.

January 31, 2013 Debian