X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=doc%2Fgmqcc.1;h=510e754d31dbe276eb4eab87e365ebe4291a4bba;hp=566346a80990ed89b37b153449fa37f85604b1c4;hb=8b2149e315d9cc7383a86e894e41dc2bf9728d93;hpb=2208136403121ecd81704b026daa371823bb61bb diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index 566346a..510e754 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -186,6 +186,9 @@ variables can be opened using .Ql #pragma noref 1 and closed via .Ql #pragma noref 0 Ns . +.It Fl W Ns Cm unused-component +Generate a warning about vector variables which are declared but not all their +components are used. .It Fl W Ns Cm used-uninitialized Generate a warning if it is possible that a variable can be used without prior initialization. Note that this warning is not @@ -615,6 +618,16 @@ Turn on arithmetic exception tests in the compiler. In constant expressions which trigger exceptions like division by zero, overflow, underflow, etc, the following flag will produce diagnostics for what triggered that exception. +.It Fl f Ns Cm split-vector-parameters +With this flag immediate vector literals which only ever appear as function +parameters won't be stored as vector immediates. Instead, the 3 floats making +up the vector will be copied separately. Essentially this turns a vector-store +instruction into 3 float-store instructions for such cases. This increases +code size but can dramatically reduce the amount of vector globals, which is +after all limited to 64k. There's at least one known codebase where this +lowers the number of globals from over 80k down to around 3k. In other code +bases it doesn't reduce the globals at all but only increases code size. +Just try it and see whether it helps you. .El .Sh OPTIMIZATIONS .Bl -tag -width Ds