From: Wolfgang Bumiller <blub@speed.at>
Date: Tue, 25 Dec 2012 22:28:09 +0000 (+0100)
Subject: manpage: -Ocall-stores
X-Git-Tag: before-library~496
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1172e2b8ccc0fcf43b1ab1c2636bdc267a80c202;p=xonotic%2Fgmqcc.git

manpage: -Ocall-stores
---

diff --git a/doc/gmqcc.1 b/doc/gmqcc.1
index 66fa92f..dbf5bab 100644
--- a/doc/gmqcc.1
+++ b/doc/gmqcc.1
@@ -407,6 +407,15 @@ print("you!\\n"); // trailing substring of "Hello you!\\n"
 There's however one limitation. Strings are still processed in order,
 so if the above print statements were reversed, this optimization
 would not happen.
+.TP
+.B -Ocall-stores
+By default, all parameters of a CALL are copied into the
+parameter-globals right before the CALL instructions. This is the
+easiest and safest way to translate calls, but also adds a lot of
+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.
 .SH CONFIG
 The configuration file is similar to regular .ini files. Comments
 start with hashtags or semicolons, sections are written in square