From: Wolfgang Bumiller Date: Thu, 25 Apr 2013 17:13:43 +0000 (+0200) Subject: manpage and ini update X-Git-Tag: 0.2.9~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9fb29d740cb7e3711035fb37c604be61dd779bb;p=xonotic%2Fgmqcc.git manpage and ini update --- diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index 56728d1..60257dc 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -497,6 +497,15 @@ void vafunc(string...count) { Most Quake VMs, including the one from FTEQW or up till recently Darkplaces, do not cope well with vector instructions with overlapping input and output. This option will avoid producing such code. +.It Fl f Ns Cm expressions-for-builtins +Usually builtin-numbers are just immediate constants. With this flag +expressions can be used, as long as they are compile-time constant. +.Pp +Example: +.Bd -literal -offset indent +void printA() = #1; // the usual way +void printB() = #2-1; // with a constant expression +.Ed .El .Sh OPTIMIZATIONS .Bl -tag -width Ds diff --git a/gmqcc.ini.example b/gmqcc.ini.example index b0ab51f..42aec66 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -107,6 +107,11 @@ # input and output. This option will avoid producing such code. LEGACY_VECTOR_MATHS = true + # Builtin-numbers are usually just immediate constants. + # The following allows whole expressions to be used, as long as they + # are compile-time constant. + EXPRESSIONS_FOR_BUILTINS = false + # These are all the warnings, usually present via the -W prefix from # the command line. [warnings]