X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=doc%2Fgmqcc.1;h=f392cc3e1357060e6f7491fd8158b5e99f19a4a9;hp=510e754d31dbe276eb4eab87e365ebe4291a4bba;hb=092067482fddeccf1b3e42ff09a046f6555cd11e;hpb=def1a26b12ffdec8f8e09fb9c41459ad30f573d3 diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index 510e754..f392cc3 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -628,6 +628,13 @@ 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. +.It Fl f Ns Cm default-eraseable +Force all expressions to be "eraseable" which permits the compiler to +remove unused functions, variables and statements. This is equivlant to +putting [[eraseable]] on all definitions. This is dangerous as it breaks +auto cvars, definitions for functions the engine may be looking for and +translatable strings. Instead, you can mark a definition with [[noerase]] +to prevent this from happening. .El .Sh OPTIMIZATIONS .Bl -tag -width Ds