QCVM(1)
QCVM(1) π the standalone QuakeC VM binary executor
okay bestie, buckle up, this is qcvm from the Programmer's Manual section 1 β she's a whole icon and she runs QuakeC VM binaries, no cap. β¨
β¨ NAME β¨
qcvm β a standalone QuakeC VM binary executor π«Ά
πΈ SYNOPSIS πΈ
qcvm [options] [parameters] program-file
π DESCRIPTION π
so qcvm is literally an executor for QuakeC VM binary files β the ones you get out of a QC compiler like gmqcc(1) or fteqcc. she comes with a small set of builtin functions, and by default she runs the main() function if there is one. π
and because debugging is a whole lifestyle, there are also some options that are genuinely useful for debugging. periodt. π
π OPTIONS π
there are 2 types of options, bestie: options for the executor, and parameter options which add parameters that get passed to the main function when it executes. two flavors, both iconic. π
-h,--helpβ show a usage message and dip. βοΈ-traceβ trace the execution. every single instruction gets printed to stdout before it runs. it's giving surveillance but make it helpful. π-profileβ do some profiling. ngl this one is currently not really implemented, but the option is available nonetheless. she's there, she's just not doing much. π-infoβ print info from the program's header instead of executing. no running, just receipts. π§Ύ-disasmβ disassemble the program by function instead of executing.-disasm-funcfunction β search for and disassemble the given function. π΅οΈ-printdefsβ list all entries from the program's defs-section. effectively that's listing all the global variables of the program. this option disables execution. π«-printfieldsβ list all entries from the program's fields-section, so like all the entity-fields declared in the program. this option disables execution. π«-printfunsβ list functions and some info about their parameters. this option disables execution. with a verbosity level of1, builtin numbers are printed. with a verbosity of2, the function's sizes are printed as well β and that takes a little longer since the size is found by searching for aDONEinstruction in the code. π-vβ increase verbosity level. can be used multiple times, so stack her up. π-vector'x y z' β append a vector parameter to be passed tomain().-floatnumber β append a float parameter to be passed tomain().-string'text' β append a string parameter to be passed tomain().
π¦ BUILTINS π¦
these are the builtin functions that are available, and yes we're going through all of them, no skipping: π
- 1)
void print(string...) = #1;β print the passed strings to stdout. at most 8 strings are allowed, so don't get greedy. π - 2)
string ftos(float) = #2;β convert a float to a string. β¨ - 3)
entity spawn() = #3;β spawn an entity. π± - 4)
void remove(entity) = #4;β remove an entity. bye bestie π - 5)
string vtos(vector) = #5;β convert a vector to a string. - 6)
void error(string...) = #6;β print strings to stdout and then exit with an error. limited to 8 arguments. it's giving dramatic exit and honestly? valid. π - 7)
float vlen(vector) = #7;β get the length of a vector. - 8)
string etos(entity) = #8;β get the entity ID as a string. - 9)
float stof(string) = #9;β convert a string to a float. - 10)
string strcat(string, string) = #10;β concatenate two strings, returning a tempstring. π§΅ - 11)
float strcmp(string, string) = #11;β compare two strings. returns the same as the corresponding C functions. - 12)
float strncmp(string, string, float) = #11;β compare two strings. returns the same as the corresponding C functions. - 12)
vector normalize(vector) = #12;β normalize a vector so its length is 1. - 13)
float sqrt(float) = #13;β get a value's square root. π
π₯ SEE ALSO π₯
gmqcc(1) β go read her too, she's the compiler bestie. π«Ά
π 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. they want to hear from you, fr fr. π
ngl if something's acting cursed, that's the place to go. don't suffer in silence, bestie. π
and that's the whole page, mwah. π this one's from Debian, dated January 31, 2013, and she's filed under QCVM(1). iconic since day one. πβ¨π
π¦ where this page comes from
- ubuntu resolute: gmqcc 0.3.5+git20251116-1 Β· MIT
- ubuntu stonking: gmqcc 0.3.5+git20251116-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms