]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
manpage: -Ovoid-return
authorWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 09:28:01 +0000 (10:28 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 09:28:01 +0000 (10:28 +0100)
doc/gmqcc.1

index dbf5bab362bc7a296b741e7181d6b5b2f649c040..bbaaaf39ded1ec542cd5d19335a6027db80a4855 100644 (file)
@@ -416,6 +416,14 @@ unnecessary copying and unnecessary temporary values. This
 optimization makes operations which are used as a parameter evaluate
 directly into the parameter-global if that is possible, which is when
 there's no other CALL instruction in between.
+.TP
+.B -Ovoid-return
+Usually an empty RETURN instruction is added to the end of a void
+typed function. However, additionally after every function a DONE
+instruction is added for several reasons. (For example the qcvm's
+disassemble switch uses it to know when the function ends.). This
+optimization replaces that last RETURN with DONE rather than adding
+the DONE additionally.
 .SH CONFIG
 The configuration file is similar to regular .ini files. Comments
 start with hashtags or semicolons, sections are written in square